#include using namespace std; int main() { int n; cin >> n; double s = 0.0; for (int i = 1; i <= 10000000; i++) { s += pow(i, -n); } cout << s << endl; }