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