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

/**************************************************************
	Problem: 1078
	User: lzk
	Language: C++
	Result: Accepted
	Time:15 ms
	Memory:2072 kb
****************************************************************/