a, b = map(int, input().split()) c, d = map(int, input().split()) d = abs(a-c)+abs(b-d) print(d/2)