n = gets.to_i

m = 10**9 + 1
lt = [m, 0]
lb = [m, m]
rt = [0, 0]
rb = [0, m]

n.times do
  x, y = gets.chomp.split.map(&:to_i)
  lt = [x, y] if x <= lt[0] && y >= lt[1]
  lb = [x, y] if x <= lb[0] && y <= lb[1]
  rt = [x, y] if x >= rt[0] && y >= rt[1]
  rb = [x, y] if x >= rb[0] && y <= rb[1]
end

def len(a, b)
  (a[0] - b[0]).abs + (a[1] - b[1]).abs
end

r = [
  len(lt, lb),
  len(lt, rt),
  len(lt, rb),
  len(lb, rt),
  len(lb, rb),
  len(rt, rb),
].max

puts r
