#include <bits/stdc++.h> using namespace std; int main(){ int a,temp1=1,temp2=1,result; cin >> a; for(int i=1;i<=a;i++){ result+=temp1; temp2++; if(temp2>temp1){ temp2=1; temp1++; } } cout << result; return 0; }