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