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