x1, y1 = map(int, input().split())
x2, y2 = map(int, input().split())

ans = (abs(x2-x1) + abs(y2-y1)) / 2
print(ans)