N = gets.to_i
XY = readlines.map {|s| s.split.map(&:to_i) }
a = XY.sort_by {|x,y| x+y }
x1,y1,x2, y2 = *a[0], *a[-1]
ans = (x1-x2).abs + (y1-y2).abs
a = XY.sort_by {|x,y| x-y }
x1,y1,x2, y2 = *a[0], *a[-1]
puts [ans, (x1-x2).abs + (y1-y2).abs].max