#include <iostream> using namespace std; int main() { string N; cin>>N; int L=N.length(); int e=L-1; int a,b; if(L<3){ if(L==1){ a=N[0]-'0'; b=0; }else if(L==2){ a=N[0]-'0'; b=N[1]-'0'; } }else{ if(N[2]-'0'<5){ a=N[0]-'0'; b=N[1]-'0'; }else{ if(N[1]-'0'+1<10){ a=N[0]-'0'; b=N[1]-'0'+1; }else{ if(N[0]-'0'!=9){ a=N[0]-'0'+1; b=0; }else{ a=1; b=0; e++; } } } } cout<<a<<'.'<<b<<'*'<<10<<'^'<<e<<endl; return 0; } // 64 位输出请用 printf("%lld")