#include<bits/stdc++.h> using namespace std; int main(){ int k,sn=0,n=1; cin>>k; while(sn>k){ sn=sn+1/n; n++ ; } cout<<n; return 0; }