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