X = float(input()) MAX = 10 ** 5 ans = 1 / (X + MAX) for n in range(MAX, 0, -1): ans += (X + n) ** (-2) print(ans)