const main = stdin => {
  const input = stdin.trim().split('\n')

  const [N] = input[0].split(' ').map(x => parseInt(x))
  const x = []
  const y = []
  for (let i = 0; i < N; i++) {
    const [X, Y] = input[i + 1].split(' ').map(x => parseInt(x))
    x.push(X)
    y.push(Y)
  }

  let ans = 0
  for (let i = 0; i < N; i++) {
    for (let j = 0; j < N; j++) {
      ans = Math.max(Math.abs(x[i] - x[j]) + Math.abs(y[i] - y[j]), ans);
    }
  }
  console.log(ans)
}


// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"))
