n = gets.to_i

max = 0
arr = []
n.times do
  x, y = gets.split(" ").map(&:to_i)
  arr.each do |xx, yy|
    dist = (x - xx).abs + (y - yy).abs
    max = dist if max < dist
  end
  arr << [x, y]
end

puts max
