K = int(input()) ans = 0 for n in range(1, 2*10**6): ans += 1.0 / (n * (n + K)) print(ans)