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