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