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