N=input().split() A=[] for n in N: s=0 L=len(n) for i in range(L): if n[i]=='.': s,n=L-i-1,n[:i]*+n[i+1:] break A+=[int(n),s] N=str(A[0]*10**A[3]+A[2]*10**A[1]) s=len(N)-A[1]-A[3] print(N[:s]+["."+N[s:],""][all(n<'1'for n in N[s:])])