puts $<.map{|l|x=l.to_f j=60939 18.times{x=j&1>0?Math.cos(x):Math.sin(x);j/=2} "%f"%x}