#include <iostream>
#include <string>
using namespace std;

int main() {
    string s;
    cin >> s;

    int a = s[0] - '0';     
    int b = s[1] - '0';      
    int c = s.size() - 1;   
    
 //先从第三位开始往前推
    if (s.size() >= 3) {
        int d = s[2] - '0';  
        if (d >= 5) {         
            b += 1;        
            if (b == 10) {
                b = 0;      
                a += 1;      
          
                if (a == 10) {
                    a = 1;
                    c += 1;  
                }
            }
        }
    } 
    cout << a << "." << b << "*10^" << c << endl;
    return 0;
}