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