#include<bits/stdc++.h>
using namespace std;
int main(){
	int i,n,w=1,s=0,l=0;
	cin>>n;
	for(i=1;l<=n;i++){
		for(w=1;w<=i;w++){
			l++;
			if(l>n){
				break;
			}
			s+=i;
		}
	}
	cout<<s;
	return 0;
}
/**************************************************************
	Problem: 1520
	User: houshanglin
	Language: C++
	Result: Accepted
	Time:47 ms
	Memory:2072 kb
****************************************************************/