#include <stdio.h>
#include <stdlib.h>
int main(){
int a, b, c, sum=0 ;
if (a<=b)
for (c=a ; c<=b ; c++){
sum = sum + c;
}
else if (a>b)
for (c=b ; c>a ; c++){
sum = sum + c;
}
return 0;
}
CiNpbmNsdWRlIDxzdGRpby5oPgojaW5jbHVkZSA8c3RkbGliLmg+CmludCBtYWluKCl7CglpbnQgYSwgYiwgYywgc3VtPTAgOwoJc2NhbmYoIiVkIiwmYSk7CglzY2FuZigiJWQiLCZiKTsKCXByaW50Zigi5YWl5Yqb44OH44O844K/Me+8miVkXG4iLGEpOwoJcHJpbnRmKCLlhaXlipvjg4fjg7zjgr8y77yaJWRcbiIsYik7CglpZiAoYTw9YikKICAgIAlmb3IgKGM9YSA7IGM8PWIgOyBjKyspewogICAgICAgICBzdW0gPSBzdW0gKyBjOwoJCQl9CiAgZWxzZSBpZiAoYT5iKQogICAgICBmb3IgKGM9YiA7IGM+YSA7IGMrKyl7CiAgICAgICAgc3VtID0gc3VtICsgYzsKCQkJfQoJCXByaW50Zigi5Ye65Yqb44OH44O844K/77yaJWQiLHN1bSk7CgkKICAgcmV0dXJuIDA7Cn0=