import math x = float(input()) s = math.pi**2/6 for n in range(1, 3000000): s -= (x**2 + 2*n*x)/((x+n)**2 * n**2) print(s)