#include int sum(int num) { if (num == 1) { return num; } else { return sum(num - 1) + num; } } int main() { int num; std::cin >> num; std::cout << sum(num); }