with(Math)for(s=sin,c=cos;x=readline();)print(s(s(c(c(c(s(c(c(c(s(s(s(s(s(c(s(c(c(x)))))))))))))))))).toFixed(6))