#include using namespace std; int main() { ios::sync_with_stdio(false); std::cin.tie(nullptr); cout << fixed << setprecision(30); int n; cin >> n; double s = 0.0; for (int i = 1; i <= 10000000; i++) { s += pow(i, -n); } cout << s << endl; }