Px, Py = map(int, input().split()) Qx, Qy = map(int, input().split()) print((abs(Px-Qx) + abs(Py-Qy)) / 2)