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