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