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