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