P = gets.split.map(&:to_i) Q = gets.split.map(&:to_i) ans = ((P[0] - Q[0]).abs + (P[1] - Q[1]).abs) / 2.0 puts ans