#include using namespace std; int main(){ int N,a,b; cin>>N; a=N; b=a; for(int i=1;i<=N*(N+1)/2;i++){ if(b==i){ cout<