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