function Main(input) {

	// 1行目がinput[0], 2行目がinput[1], …に入る
	input = input.split("\n").filter(Boolean);
    input.shift();
    
    let xy = input.map(val => val.split(" ").map(Number));

    let arr0 = xy.map(val => val[0] + val[1]).sort();
    let arr1 = xy.map(val => val[0] - val[1]).sort();
    
    let arr0_calc = arr0[arr0.length - 1] - arr0[0];
    let arr1_calc = arr1[arr1.length - 1] - arr1[0];
 
    let ans = arr0_calc > arr1_calc ? arr0_calc : arr1_calc;
    
    console.log(ans.toString());
    
}

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