#include<bits/stdc++.h> using namespace std; int main(){ double n,k=0,t=0; cin>>k; for(n=1;t>k;n++)t=1/n+t; n=t; cout<<n; }