n = input() n_length = len(n)-1 n = round(float(n[:3])/100+0.01,1) if n>=10: n /= 10 n_length += 1 print(str(n)+"*10^"+str(n_length))