n = $stdin.readline.to_i
d = Array.new(n) { $stdin.readline.chomp.split.map(&:to_i) }

d.sort_by! {|x, y| x + y }
res = (d[0][0] - d[-1][0]).abs + (d[0][1] - d[-1][1]).abs

d.sort_by! {|x, y| x - y }
res = [res, (d[0][0] - d[-1][0]).abs + (d[0][1] - d[-1][1]).abs].max
puts res