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