PX, PY = gets.split.map(&:to_i) QX, QY = gets.split.map(&:to_i) puts ((PX - QX).abs + (PY - QY).abs) / 2.0