#include<bits/stdc++.h> using namespace std; double s,ans=1,i=2; int main(){ cin>>s; while(s>ans){ ans+=1.0/i; i++; } cout<<i-1; return 0; }