#include <bits/stdc++.h>
#define IOS ios_base::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);
using namespace std;
int k,n=1;
double sum=1;
signed main() {
IOS;
cin >> k;
if(k==1) {
cout << 2;
return 0;
}
while(1) {
++n;
for(int i=1;i<=n;++i)
sum+=1.0/i;
if(sum > k) {
cout << n;
return 0;
}
}
return 0;
}