#include using namespace std; int main () { int n; cin >> n; int S = 0; int i = 1; while(i <= n) { S += i; i ++; } cout << S << endl; return 0; }