#include using namespace std; int addUp(int n) { return n > 0 ? n + addUp(--n) + 1 : n; } int main () { int n; cin >> n; cout << addUp(n) << endl; }