p1 = [int(i) for i in input().split()] p2 = [int(i) for i in input().split()] d = abs(p1[0] - p2[0]) + abs(p1[1] - p2[1]) print(d/2)