#include using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false), cin.tie(0); string s; cin >> s; int x = s[0]-'0'; int y = s[1]-'0'; int z = s[2]-'0'; if(z > 4) y++; int k = s.size()-1; if(y == 10) y = 0, x++; if(x == 10) x = 1, k++; cout << x << "." << y << "*10^" << k << endl; }