x[3];main(n){for(;~scanf("%s",&n);puts(""))for(scanf(n%3?n=1,"%f":n%2?n=3,"%Lf":(n=2,"%lf"),x);n--;printf("%0*x",n-2?8:4,x[n]))*x^=x[1]>>27==-7;}