#include<iostream> using namespace std; int main(){ int w,e,x; cin>>x>>w; e=0; for(;x<=w;x++){ e=e+x; } cout<<e; }