include[HTML_REMOVED]
using namespace std;
int main(){
int a,n;
cin>>a;
while(cin>>n){
if(n<=0)continue;
else {
int s=0;
for(int i=0;i<n;i++){
s+=a+i;
}
cout<<s<<endl;
break;
}
}
return 0;
}