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