
import scala.io.StdIn

object Main extends App {
  val n = StdIn.readInt()
  val points :Seq[(Int,Int)] = for(i <- 1 to n) yield {
    val Array(a,b,_*) = StdIn.readLine().split(' ').map(_.toInt)
    (a,b)
  }
  val sin45 = math.sin(Math.PI/4)
  val cos45 = math.cos(Math.PI/4)
  def rotate(point:(Int,Int)):(Double,Double)={
    val (x,y) = point
    (x*cos45-y*sin45,x*sin45+y*cos45)
  }

  def dist(point1:(Int,Int),point2:(Int,Int)):Int={
    val (x1,y1) = point1
    val (x2,y2) = point2
    math.abs(x1-x2) + math.abs(y1-y2)
  }
  val pointRot = points.map(rotate)

  val maxX = pointRot.map(_._1).zipWithIndex.maxBy(_._1)._2
  val minX = pointRot.map(_._1).zipWithIndex.minBy(_._1)._2
  val maxY = pointRot.map(_._2).zipWithIndex.maxBy(_._1)._2
  val minY = pointRot.map(_._2).zipWithIndex.minBy(_._1)._2
  val ans = math.max(dist(points(maxX),points(minX)),dist(points(maxY),points(minY)))
  println(ans)
}





