#! /usr/bin/env python3 N = input() l = len(N)-2 n = int(N) x = round(n/10**l)/10 if x == 10: x /= 10 l += 1 print(str(x)+'*'+'10'+'^'+str(l+1))