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