#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
ostringstream ss;
ss << scientific << 123456789.87654321;
string s = ss.str();
s.replace(s.find("e"), 1, "*10^");
cout << s << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPHN0cmluZz4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICAgIG9zdHJpbmdzdHJlYW0gc3M7CiAgICBzcyA8PCBzY2llbnRpZmljIDw8IDEyMzQ1Njc4OS44NzY1NDMyMTsKICAgIHN0cmluZyBzID0gc3Muc3RyKCk7CiAgICBzLnJlcGxhY2Uocy5maW5kKCJlIiksIDEsICIqMTBeIik7CiAgICBjb3V0IDw8IHMgPDwgZW5kbDsKCXJldHVybiAwOwp9