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