#include<bits/stdc++.h> using namespace std; int main() { long double in,sum=1,count=1,temp; cin>>in; while(count<=in) { count++; temp*=count; sum+=1.0/temp; } cout<<fixed<<setprecision(10)<<sum; }