#include #include #include #include #include using namespace std; string S; int main(){ cin >> S; bool flag=false; if(S[2]>='5'){ if(S[1]=='9'){ S[1]='0'; if(S[0]=='9'){ S[0]='1'; flag=true; } else S[0]++; } else S[1]++; } string t=""; t+=S[0]; t+='.'; t+=S[1]; t+="*10^"; int n; if(flag){ n=S.size(); } else{ n=S.size()-1; } t+=to_string(n); cout << t << endl; }