x = float(input()) S = 0 for i in range(1,10**7): S += 1/(x+i)**2 S += 1/(x+10**7) print(S)