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