#include <stdio.h>
int main(void)
{
int a,b,start,end,n,sum=0;
if(a>b)
{
start=b;
end=a;
}else{
start=a;
end=b;
}
for(n=start;n<=end;n++)
{
sum +=n;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSAKewoJaW50IGEsYixzdGFydCxlbmQsbixzdW09MDsKCXNjYW5mKCIlZCIsJmEpOwoJc2NhbmYoIiVkIiwmYik7CglpZihhPmIpCgl7CgkJc3RhcnQ9YjsKCQllbmQ9YTsKCX1lbHNlewoJCXN0YXJ0PWE7CgkJZW5kPWI7Cgl9Cglmb3Iobj1zdGFydDtuPD1lbmQ7bisrKQoJewoJCXN1bSArPW47Cgl9CglwcmludGYoIiVkIixzdW0pOwogICAgcmV0dXJuIDA7Cn0=