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