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