#include<stdio.h>
void
main() {
int
i, s = 0;
for
(i = 0; i <= 100; i++) {
s = s + i;
if
(s > 1000)
break
;
}
printf
(
"%d\n"
, s);