import math x=float(input()) if x==0: ans=1 else: ans=(math.sin(x)/x)**2 for i in range(1,100000000): x+=1 ans+=(math.sin(x)/x)**2 print(ans)