n = gets.to_i
points = readlines.map{|line| line.split.map(&:to_i)}
p1 = []
p2 = []
p3 = []
p4 = []
points.each do |i|
  x =  i[0]+i[1]
  y =  i[0]-i[1]
  p1 << x
  p2 << -x
  p3 << y
  p4 << -y
end
p1.sort!
p2.sort!
p3.sort!
p4.sort!
puts [p1[-1]+p2[-1],p3[-1]+p4[-1]].max