#include using namespace std; int main() { double k; cin >> k; if(k == 0) { cout << 1.644934066848226436472415166646025189218 << endl; } double x = 1; for(double c = 2; c <= k; c += 1) { x += 1/c; } x /= k; cout << x << endl; }