"use strict"

function Main(input) {
  let lines = input.split('\n');
  let N = parseInt(lines[0], 10);
  const points = [];
  for ( let i = 0; i < N; i++ ) {
    points.push(lines[i+1].split(' ').map(Number));
  }

  const lengths = [];
  for ( let i = 0; i < N; i++ ) {
    for ( let j = i; j < N; j++ ) {
      lengths.push(manhattanLength(points[i%N], points[j%N]));
    }
  }
  console.log(lengths.reduce((a,b)=>a>b?a:b));

  return;
}

function manhattanLength(a1, a2) {
  return Math.abs(a1[0] - a2[0]) + Math.abs(a1[1] - a2[1]);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));

