x=int(input()) ANS=0 for i in range(1,10**6): ANS+=1/(x+i)**2 print(ANS)