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


return 0;
}

/**************************************************************
	Problem: 1078
	User: cx001
	Language: C++
	Result: Compile Error
****************************************************************/