#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int k,n=1;
scanf("%d",&k);
double s=0;
do
{
s=s+1.0/n;
n++;
}
while(s<=k);
printf("%d",n-1);
return 0;
}100'
#include<cstdio>
using namespace std;
int main()
{
int k,n=1;
scanf("%d",&k);
double s=0;
do
{
s=s+1.0/n;
n++;
}
while(s<=k);
printf("%d",n-1);
return 0;
}100'