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