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