#include<iostream> using namespace std; int main() { double s = 0; int k; cin>> k; int i; for ( i = 1;s<=k ; i++) s += 1.0 / i; cout <<i; return 0; }