#include<iostream> #include<cmath> using namespace std; int main(){ double b,N,S; cin>>b; S=0; N=0; while (S<=b){ N++; S+=1/N; if(S>b){ break; } } cout<<N; return 0; }