x1, x2 = list(map(int, input().split())) y1, y2 = list(map(int, input().split())) xd=max(x1, x2)-min(x1, x2) yd=max(y1, y2)-min(y1, y2) d=(xd+yd)/2 print(d)