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