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