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",s,s>9.949?s/=10,c-1:c-2);}