#include<bits/stdc++.h> using namespace std; int s,n; double pl; int main(){ cin>>s; for(n=1;n<=1<<29;n++){ pl+=1.0/n; if(pl>s){ cout<<n-1; break; } } cout<<pl; return 0; }