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