n = gets.to_i
a, b = n.times.map{gets.split.map(&:to_i)}.transpose
max_ab = 0
min_ab = 10000000000
max_a_b = 0
min_a_b = 10000000000
n.times do |i|
  max_ab = [max_ab,a[i]+b[i]].max
  min_ab = [min_ab,a[i]+b[i]].min
  max_a_b = [max_a_b,a[i]-b[i]].max
  min_a_b = [min_a_b,a[i]-b[i]].min
end
puts [max_ab-min_ab,max_a_b-min_a_b].max