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