n = gets.to_i
maps = []
n.times do
  maps << gets.split(' ').map(&:to_i)
end

md = 0
for i in 0..(n-1) do
  for j in (i+1)..(n-1) do
    d = (maps[i][0] - maps[j][0]).abs + (maps[i][1] - maps[j][1]).abs
    md = d if d > md
  end
end
puts md

