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