round=lambda x:(x*2+1)//2 i = input() n= len(i)-1 t = int(i[:2])/10 t = round(t) if t == 10: t = t/10 n += 1 print(str(t)+'*10^'+str(n))