from scipy.special import* from math import* from numpy import* ans = 0 x = float(input()) T = 1000000 for i in range(T): if x == 0 and i == 0 : ans = 1 else : ans += sinc(x+i)*sinc(x+i) ans += pi/2 S,C = sici((x + T-1)*2) ans -= S print(ans)