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