#include<iostream> using namespace std; int main(){ int n=1,k; float Sn=0; cin>>k; for(n;Sn<k;++n){ Sn+=1.0/n; } cout<<n; return 0; }