ax, ay = map(int, input().split()) bx, by = map(int, input().split()) ans = abs(ax - bx) + abs(ay - by) print(ans/2)