#include<bits/stdc++.h> using namespace std; int main() { int j=0,n,m; cin>>n>>m; for(int a=n;a<=m;a++){ j=j+a; } cout<<j; return 0; }