#include<bits/stdc++.h> using namespace std; int main() { int m; double e=1.0; cin>>m; int i=1; long long xi=1; while(i<=m){ xi=xi*i; e+=(double)(1.0*1/xi); i++; } cout<<fixed<<setprecision(10)<<e; return 0; }