#include <bits/stdc++.h>
#include <boost/math/special_functions/polygamma.hpp>
using namespace std;
using namespace boost;

int main() {
	int k;
	cin >> k;
	if (k == 0) {
	    puts("1.644934066848");
	} else {
	    printf("%.12f\n", (math::polygamma(0, k + 1) + 0.5772156649) / k);
	}
}