N = gets.to_i
E = N.times.map{ gets.split.map(&:to_i) }
a = E.minmax_by{|x,y| x + y }.then{|min, max| (min[0] - max[0]).abs + (min[1] - max[1]).abs }
b = E.minmax_by{|x,y| x - y }.then{|min, max| (min[0] - max[0]).abs + (min[1] - max[1]).abs }
puts [a,b].max