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