#yuki454 import math n=float(raw_input()) a=math.pi**2/6 for i in xrange(1,1000000): a+=(n+i)**(-2)-i**(-2) print a