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