k = int(input()) X = 0 for n in range(1, 10**6): X += 1 / (n * (n + k)) print(X)