n = gets.to_i

xy = []
n.times do
    x, y = gets.split.map(&:to_i)
    xy << [x - y, x + y]
end

xy.sort_by!{|e| e[0]}
a = xy[-1][0] - xy[0][0]
xy.sort_by!{|e| e[1]}
b = xy[-1][1] - xy[0][1]
p [a, b].max