#include<bits/stdc++.h> using namespace std; double n; int k,i; int main(){ cin>>k; for (i=1;n<=k;i++) n+=1/i; cout<<i; }