import math while 1:r=input();n=60939;exec'r=math.sin(n*math.pi/2-r);n/=2;'*18;print"%f"%r