c;float s,z=1;main(t){for(;read(0,&t,1);z*=.1)c++<3?s+=(t-48)*z:0;printf("%.1f*10^%d\n",s,s>9.94?s/=10,c-1:c-2);}