#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string S; cin >> S; int a = 0, b = 0, c = 0; while ((int)S.size() - c != 1) { c++; } int x = (S[0] - '0') * 100 + (S[1] - '0') * 10 + (S[2] - '0'); x = (x + 9) / 10; if (x > 99) x /= 10, c++; cout << x / 10 << "." << x % 10 << "*" << 10 << "^" << c << '\n'; return 0; }