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