#include using namespace std; int main() { auto a = 0; cin >> a; auto sum = 0; for (auto i = 1; i <= a; ++i) { sum += i; } cout << sum; return 0; }