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