#include<iostream> using namespace std; int main(){ int n,sum=0,i=0; cin>>n; while(sum<=n){ sum+=1/(++i); } cout<<i; }