N=input() n=int(N[:3]) n=((n+5)//10)*10 N=str(n)+N[3:] print(N[0]+"."+N[1]+"*10^"+str(len(N)-1))