#include<iostream> using namespace std; int main() { int k,n; double i=1,S=0; cin>>k; while(S<k) { S+=1/i; i++; } cout<<i<<endl; return 0; }