from math import pi
from decimal import Decimal

x = Decimal(float(input()))
ans = Decimal(0)
for i in range(1, 10 ** 5 + 1):
    ans += Decimal(1) / (Decimal(i + x) * Decimal(i + x))
ans += Decimal(1) / Decimal(i + x)
print(ans)