System.in.eachLine{a->n=402408 while(n>>=1)a=Math.cos(n*Math.PI/2-a.toDouble()) printf"%f\n",a}