#include <iostream> using namespace std; int main() { int k; cin>>k; double n=0,t=0; while(t<k*1.0) { n++; t=1.0/n+t; } cout<<n<<endl; return 0; }