def manhattan(cor_1, cor_2)
  x = cor_1[0] - cor_2[0]
  y = cor_1[1] - cor_2[1]
  x *= -1 if x < 0
  y *= -1 if y < 0
  x + y
end


N = gets.to_i

coordinates = []



N.times do
  coordinates << gets.split(' ').map(&:to_i)
end

ans = 0
(0..N-2).each do |i|
  (i+1..N-1).each do |j|
    manhattan_distance = manhattan(coordinates[i],coordinates[j])
    ans = manhattan_distance if manhattan_distance > ans
  end
end

puts ans
