#include<bits/stdc++.h>
using namespace std;
int main()
{
	int x,n=0;
	float s=0;
	cin>>x;
	while(x<=s){
		n+=1;
		s+=1.0/n;
	}
	cout<<n;
 return 0;
 }

/**************************************************************
	Problem: 1078
	User: ccf
	Language: C++
	Result: Wrong Answer
****************************************************************/