#include<iostream> using namespace std; int sum(int l,int r) { int sum=0; for(int i=l;i<=r;i++) sum=sum+i; return sum; } int main() { int x,y; cin>>x>>y; cout<<sum(x,y)<<endl; }