px, py = gets.chomp.split.map &:to_i qx, qy = gets.chomp.split.map &:to_i p ((px - qx).abs + (py - qy).abs).to_f / 2