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