#include <cmath>
#include <iostream>
using namespace std;
int poww(int b,int k) {
return (!k)?1:b*poww(b,k-1);
}
int main() {
int a;
cin>>a;
double s=0;
long double f=1;
double e=10;
for(int n=2;e>0.000001;n++){
f*=n;
s+=log(f)/poww(n,a);
e=log(f)/poww(n,a);
}
cout<<s;
return 0;
}
I2luY2x1ZGUgPGNtYXRoPgojaW5jbHVkZSA8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBwb3d3KGludCBiLGludCBrKSB7CiAgcmV0dXJuICghayk/MTpiKnBvd3coYixrLTEpOwp9CmludCBtYWluKCkgewoJaW50IGE7CgljaW4+PmE7IAoJZG91YmxlIHM9MDsKCWxvbmcgZG91YmxlIGY9MTsKCWRvdWJsZSBlPTEwOwoJZm9yKGludCBuPTI7ZT4wLjAwMDAwMTtuKyspewoJZio9bjsKCXMrPWxvZyhmKS9wb3d3KG4sYSk7CgllPWxvZyhmKS9wb3d3KG4sYSk7Cgl9Cgljb3V0PDxzOwoJcmV0dXJuIDA7CgkKfQ==