#include #include int main() { long double N; scanf("%Lg",&N); int N10 = log(N)/log(10); float head = N/pow(10,N10); if( head>9.95 ) { head /= 10; N10++; } printf("%Lg = %.1f*10^%d\n",N,head,N10); return 0; }