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