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