function Main(input) {
    input = input.trim().split("\n").map(function(x) { return x.split(" ")});
    let N = parseInt(input[0], 10);
    let xy = [];
    for (let i = 0; i < N; i++){
        xy.push(input[i + 1].map( e => parseInt(e, 10)));
    }
    let ans = 0;

    xy.sort((a, b) => (a[0] - a[1]) - (b[0] - b[1]));
    let p1 = xy[0].slice();
    let p2 = xy[N - 1].slice();
    ans = Math.abs(p1[0] - p2[0]) + Math.abs(p1[1] - p2[1]);

    xy.sort((a, b) => (a[0] + a[1]) - (b[0] + b[1]));
    let p3 = xy[0].slice();
    let p4 = xy[N - 1].slice();
    ans = Math.max(ans, Math.abs(p3[0] - p4[0]) + Math.abs(p3[1] - p4[1]));
    console.log(ans);
    // console.log(p1, p2, p3, p4);
}

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