#include <iostream> #include <iomanip> using namespace std; int main() { int n; cin >> n; double e=1; for(int i=1;i<=n;i++){ int k=1; for(int j=1;j<=i;j++){ k*=j; } e+=1.0/k; } cout << fixed << setprecision(10) << e; return 0; }