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