#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; cout<<(n+1)*n*0.5; } /************************************************************** Problem: 1002 User: yangjunwen Language: C++ Result: Accepted Time:7 ms Memory:2072 kb ****************************************************************/