#include #include #include #include using namespace std; using uint = unsigned int; using int64 = int64_t; using uint64 = uint64_t; int main() { string s; cin >> s; char a = 0; char b = 0; uint c = 0; uint L = s.size(); for( uint i = 0 ; i < L ; i++ ){ if( i == 0 ){ a = s[i]; } if( i == 1 ){ b = s[i]; c += 1; } if( i == 2 ){ if( s[i] == '5' || s[i] == '6' || s[i] == '7' || s[i] == '8' || s[i] == '9' ){ if( b == 9 ){ b = 0; if( a == 9 ){ a = 1; c += 1; } else { a += 1; } } else { b += 1; } } c += 1; } if( i > 2 ){ c += 1; } } cout << a << "." << b << "*" << "10^" << c << "\n"; }