require 'set'; require 'prime'; require 'pp'
INF=Float::INFINITY; MOD=10**9+7
n = gets.chomp.to_i
sx = Array.new(n)
sy = Array.new(n)
n.times do |i|
  x, y = gets.chomp.split.map(&:to_i)
  sx[i] = x - y
  sy[i] = x + y
end

puts [sx.max - sx.min, sy.max - sy.min].max
