#include <iostream> using namespace std; int main() { int k, n = 0; float sn = 0; cin >> k; while (sn <= k) { n += 1; sn += 1.0 / n; } cout << n; return 0; }