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