using namespace std; float s=0; int n=0,k; int main(){ cin>>k; while(s<=k){ n++; s+=1.0/n; } cout<<n; return 0; } ```