#include<stdio.h>
#include<iostream>
using namespace std;
int main (){
    string s;
    cin >> s ;
    int x,y,l=s.length();
    x = s[0] - '0';
    y = s[1] - '0';
    if( s[2] - '0' >= 5) y += 1;
    x += y / 10;
    y = y % 10;
    if ( x == 10 ) {
        x /= 10;
        l++;
    }
    cout << x << "." << y << "*10^" << l - 1 << endl;
    return 0;
}