const main = (input) => {
  input = input.split("\n")
  var N=Number(input[0]);
  let point=[];
  for (var i=1; i<=N;i++){
    point[i]=input[i].split(" ").map(n=>Number(n));
  }


  let dist = [];
  for (var i=1; i<=N;i++){
    for (var j=i+1; j<=N;j++){
      dist.push(Math.abs(point[i][0]-point[j][0])+Math.abs(point[i][1]-point[j][1]));
    }
  }
  dist.sort((a,b)=>b-a);

  console.log(dist[0]);
  };
  
main(require('fs').readFileSync('/dev/stdin', 'utf8'));

