#include <iostream> using namespace std; int main() { int a, b ; cin >> a; b = 0; for (int i = 0; i <= a; i++) { b += i; } cout << b; }