#include<iostream> using namespace std; int sum(int l,int r) { cout<<(l+r)*(r-l+1)/2<<endl; } int main() { int a,b; cin>>a>>b; sum(a,b); return 0; }