#include #include #include #include #include #include #include #include #include using namespace std; int main() { string N; cin >> N; int lengthOfExponent = static_cast(N.length() - 1); int a = N[0] - '0'; int b = N[1] - '0'; int c = N[2] - '0'; if (c >= 5) { b += 1; if (b == 10) { b = 0; a += 1; if (a == 10) { a = 1; lengthOfExponent += 1; } } } string result = ""; result += to_string(a); result += "."; result += to_string(b); result += ("*10^" + to_string(lengthOfExponent)); cout << result << "\n"; return 0; }