#include <iostream>
using namespace std;
int main() { int n; while(cin >> n){ int i = 1,temp = 1; while(i < n){ temp = temp + i; i++; } cout << temp << endl; }
}