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