x = float(input()) ans = 0.0 for i in range(1, 10**6 + 1): ans += 1 / (i + x) / (i + x) ans += 1 / (10**6 + x) print(ans)