#include using std::cout; using std::cin; int main() { int N; cin >> N; int sum = 0; for (int i = 1; i <= N; i++) { sum += i; } cout << sum << "\n"; return 0; }