# include<iostream> using namespace std; int main(){ int n,m,j=0; cin>>n>>m; for(int i=n;i<=m;i++) j+=i; cout<<j; return 0; }