px,py=list(map(int,input().split())) qx,qy=list(map(int,input().split())) dx=abs(px-qx) dy=abs(py-qy) print(0.5*(dx+dy))