#include "bits/stdc++.h"
using namespace std;
#define rep(i,n) for(int (i)=0;(i)<(int)(n);++(i))
#define rer(i,l,u) for(int (i)=(int)(l);(i)<=(int)(u);++(i))
#define reu(i,l,u) for(int (i)=(int)(l);(i)<(int)(u);++(i))
static const int INF = 0x3f3f3f3f; static const long long INFL = 0x3f3f3f3f3f3f3f3fLL;
typedef vector<int> vi; typedef pair<int, int> pii; typedef vector<pair<int, int> > vpii; typedef long long ll;
template<typename T, typename U> static void amin(T &x, U y) { if (y < x) x = y; }
template<typename T, typename U> static void amax(T &x, U y) { if (x < y) x = y; }

int main() {
	string S;
	while (cin >> S) {
		int a = S[0] - '0', b = S[1] - '0', n = (int)S.size() - 1;
		if (S[2] >= '5') {
			if (++ b > 9) {
				b = 0;
				if (++ a > 9)
					a = 1, ++ n;
			}
		}
		printf("%d.%d*10^%d\n", a, b, n);
	}
	return 0;
}