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