#include<bits/stdc++.h> using namespace std; int main(){ double s,coun=1; cin>>s; for(double n=2;;n++){ coun+=1.0/n; if(coun>s){ cout<<n; return 0; } } return 0; }