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