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