px, py = [int(x) for x in input().split()] qx, qy = [int(x) for x in input().split()] res = (abs(px - qx) + abs(py - qy)) / 2 print(res)