#include <iostream>
using namespace std;
int main(void)
{
int a, n;
cin >> a;
do {
cin >> n;
} while (n <= 0);
int sum = 0;
while (n--) {
sum += a;
a++;
}
cout << sum << endl;
return 0;
}