#include using namespace std; int main() { int n, total; std::cin >> n; for (int i = 1; i <= n; i++) { total += i; } std::cout << total; return 0; }