int he (int x,int y){ int i,s=0; for (i=x;i<=y;i++) { s=s+i; } return s;}
main(){ int a,b,sum; scanf("%d%d",&a,&b); sum = he(a,b); printf("%d",sum); getch();}