#include <stdio.h>
int sum(int n){
int x = 0;
for (int i = 1; i <= n; i++) {
x+= i;
}
return x;
}
int main(void) {
int a,b;
a = 10;
b = sum(a);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBzdW0oaW50IG4pewppbnQgeCA9IDA7CiAgICBmb3IgKGludCBpID0gMTsgaSA8PSBuOyBpKyspIHsKICAgICAgICB4Kz0gaTsKICAgIH0KICAgIHJldHVybiB4Owp9CmludCBtYWluKHZvaWQpIHsKCWludCBhLGI7CiAgICBhID0gMTA7CiAgICBiID0gc3VtKGEpOwogICAgcHJpbnRmKCIx44GL44KJJWTjgb7jgafjga7lkozjga8lZCIsIGEsYiApOwoJcmV0dXJuIDA7Cn0K