#! /usr/bin/env python3 import math def my_round(x, d=0): p = 10 ** d return float(math.floor((x * p) + math.copysign(0.5, x)))/p N = input() l = len(N)-2 n = int(N) x = my_round(n/10**l)/10 if x > 9: x //= 10 l += 1 print(str(x)+'*'+'10'+'^'+str(l+1))