object Main {
  def main(args: Array[String]): Unit = {
    import scala.io.StdIn.readLine
    val Array(datN) = readLine.split(" ").map(_.toInt)
    val datA = for(i <- 1 to datN.toInt) yield {val Array(a,b) = readLine.split(" ").map(_.toInt); (a,b)}
//    val ans = datA.map{ a =>
//      datA.map{ b => math.abs(a._1 - b._1) + math.abs(a._2 - b._2) }
//    }.flatten.max
    val ans = for (i <- 0 until datA.length; j <- i until datA.length) yield {
      math.abs(datA(i)._1 - datA(j)._1) + math.abs(datA(i)._2 - datA(j)._2)
    }
    println(ans.max)
  }
}