n = gets.chomp.to_i
arr = n.times.map{gets.chomp.split(" ").map(&:to_i)}

MAX = 10 ** 10

min_x = MAX
min_y = MAX
max_x = 0
max_y = 0
arr.each do |(x, y)|
  min_x = x if x < min_x
  max_x = x if x > max_x
  min_y = y if y < min_y
  max_y = y if y > max_y
end

min1 = MAX
min2 = MAX
p_x, p_y, q_x, q_y = nil, nil, nil, nil
arr.each do |(x, y)|
  tmp = (x - min_x).abs + (y - min_y).abs
  if tmp < min1
    p_x, p_y = x, y
    min1 = tmp
  end
  tmp = (x - max_x).abs + (y - max_y).abs
  if tmp < min2
    q_x, q_y = x, y
    min2 = tmp
  end
end

puts (p_x - q_x).abs + (p_y - q_y).abs
