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