n=input() l=len(n)-3 i=int(n[:3]) while i>=10: i=round(i/10); l+=1 print("{:.1f}".format(i),"*10^",l,sep='')