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