#include<bits/stdc++.h> using namespace std; int main(){ int k, n = 1; cin >> k; float tot = 0; for(float i = 1.0; tot <= k; i++, n++){ tot += 1.0 / i; } cout << n-1; return 0; }