S=list(map(int,input())) 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))