s=input() S=[0,0,0] S[0]=int(s[0]) S[1]=int(s[1]) S[2]=int(s[2]) if S[0]==9 and S[1]==9 and S[2]>=5: print("1.0*10^"+str(len(S))) elif S[2]>=5: if S[1]<=8: S[1]+=1 elif S[1]==9: S[0]+=1 S[1]=0 print(str(S[0])+"."+str(S[1])+"*10^"+str(len(S)-1))