N = int(input()) if N == 0: print(1.64493406685) exit() S = 0.0 for i in range(N): S += 1.0 / (i + 1) print(S / N)