object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt()
  val xy = List.fill(n)((sc.nextInt(), sc.nextInt()))
  val a = xy.map{case (x, y) => y - x}
  val b = xy.map{case (x, y) => y + x}
  println((a.max - a.min).max(b.max - b.min))
}
