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