#include <bits/stdc++.h> using namespace std; int main(){ float x=0,n; cin>>n; for(double t=1;;t++){ x+=1/t; if(x>=n){ cout<<t; break; } } } /************************************************************** Problem: 1078 User: yangjunwen Language: C++ Result: Accepted Time:9 ms Memory:2072 kb ****************************************************************/