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