px, py = map(int, input().split()) qx, qy = map(int, input().split()) t = (abs(qx - px) + abs(qy - py)) / 2 print(t)