#include #include using namespace std;int main(){double n,a,b=1,T=2;cin>>n;for(a=2;a<=n;a++){a=a*b;T+=1/a;b=a;}cout<return 0;}