import std.math,std.c.stdio;void main(){for(double x;scanf("%lf",&x)>0;printf("%f\n",x))for(int n=402408;n/=2;)x=n%2?sin(x):cos(x);}