px,py = (int(n) for n in input().split(" ")) qx,qy = (int(n) for n in input().split(" ")) absx = abs(px-qx) absy = abs(py-qy) print((absx+absy)/2)