px, py = map(int, input().split(" ")) qx, qy = map(int, input().split(" ")) print(abs(px-qx)/2.0+abs(py-qy)/2.0)