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

def chebyshev_distance_1(cor_1, cor_2)
  patern_1 = (cor_1[0] - cor_2[0]) + (cor_1[1] - cor_2[1])
  patern_2 = (cor_1[0] - cor_2[0]) + (cor_1[1] - cor_2[1])*(-1)
  patern_3 = (cor_1[0] - cor_2[0])*(-1) + (cor_1[1] - cor_2[1])
  patern_4 = (cor_1[0] - cor_2[0])*(-1) + (cor_1[1] - cor_2[1])*(-1)
  patern_1
end

def chebyshev_distance_2(cor_1, cor_2)
  patern_1 = (cor_1[0] - cor_2[0]) + (cor_1[1] - cor_2[1])
  patern_2 = (cor_1[0] - cor_2[0]) + (cor_1[1] - cor_2[1])*(-1)
  patern_3 = (cor_1[0] - cor_2[0])*(-1) + (cor_1[1] - cor_2[1])
  patern_4 = (cor_1[0] - cor_2[0])*(-1) + (cor_1[1] - cor_2[1])*(-1)
  patern_2
end

def chebyshev_distance_3(cor_1, cor_2)
  patern_1 = (cor_1[0] - cor_2[0]) + (cor_1[1] - cor_2[1])
  patern_2 = (cor_1[0] - cor_2[0]) + (cor_1[1] - cor_2[1])*(-1)
  patern_3 = (cor_1[0] - cor_2[0])*(-1) + (cor_1[1] - cor_2[1])
  patern_4 = (cor_1[0] - cor_2[0])*(-1) + (cor_1[1] - cor_2[1])*(-1)
  patern_3
end

def chebyshev_distance_4(cor_1, cor_2)
  patern_1 = (cor_1[0] - cor_2[0]) + (cor_1[1] - cor_2[1])
  patern_2 = (cor_1[0] - cor_2[0]) + (cor_1[1] - cor_2[1])*(-1)
  patern_3 = (cor_1[0] - cor_2[0])*(-1) + (cor_1[1] - cor_2[1])
  patern_4 = (cor_1[0] - cor_2[0])*(-1) + (cor_1[1] - cor_2[1])*(-1)
  patern_4
end

N = gets.to_i

coordinates = []



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

patern_1_array = coordinates.map{ |coordinate| chebyshev_distance_1(coordinate, [0,0])}
patern_2_array = coordinates.map{ |coordinate| chebyshev_distance_2(coordinate, [0,0])}
patern_3_array = coordinates.map{ |coordinate| chebyshev_distance_3(coordinate, [0,0])}
patern_4_array = coordinates.map{ |coordinate| chebyshev_distance_4(coordinate, [0,0])}

ans_1 = patern_1_array.max - patern_1_array.min
ans_2 = patern_2_array.max - patern_2_array.min
ans_3 = patern_3_array.max - patern_3_array.min
ans_4 = patern_4_array.max - patern_4_array.min


puts [ans_1, ans_2, ans_3, ans_4].max
