#include <iostream>
using namespace std;
#include<cmath>
#include<string>
#include<iomanip>
int main() {
     string s;
     cin>>s;
    string a,a1,a2;
    bool jinwei=0;//  进位标志 防止99.9变为100.0出错
     a=string(s,0,2)+'.'+string(1,s[2]);  //注意 判断的是第三位是否四舍五入
    double rounda=round(stod(a));
    rounda=rounda/10;
      if(rounda==10){
         rounda=1;
         jinwei=1;
      }
    cout<<fixed<<setprecision(1)<<rounda;
       
    int c=s.size()-1;
    if(jinwei==1){
        c++;
    }
     cout<<"*10^"<<c;
   
}
// 64 位输出请用 printf("%lld")