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