#include <bits/stdc++.h>
using  namespace std;
long long m=0,d=0,p;
double s;
int a[1000900];
int main() {
	int n,x; 
	int k=1;
	cin>>k;
	
	s=0;
	
	for(int j=1; ;j++)
	{
		s+=1.0/j;
		if(s>k)
		{
			cout<<j;	
			break;
		}	
	}
	
	
	
	return 0;
}

0 comments

No comments so far...