#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using ull=unsigned long long;
using i128=__int128_t;
using u128=__uint128_t;
using ld=long double;
void solve()
{
string s;
cin >> s;
int c=s.size()-1;
if(s.size()>=2)
{
if(s[2]-'0'>=5) s[1]+=1;//手动模拟四舍五入 别忘了最高位进位size要加一
if(s[1]-'0'==10) s[0]+=1;
if(s[0]-'0'==10)
{
cout << 1 << '.' << 0;
c++;
}
else
{
cout << s[0] << '.' << s[1];
}
}
cout << "*10^" << c;
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t=1;
//cin >> t;
while(t--)
{
solve();
}
return 0;
}