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