use proconio::input;
use std::cmp::max;
const INF: i64 = 2_000_000_000;

fn dist(p: (i64, i64), q: (i64, i64)) -> i64 {
	(p.0 - q.0).abs() + (p.1 - q.1).abs()
}

fn main() {
	input!(n: usize, points: [(i64, i64); n]);

	let mut xmax = (0, 0);
	let mut ymax = (0, 0);
	let mut xmin = (INF, INF);
	let mut ymin = (INF, INF);

	for point in points {
		if point.0 > xmax.0 { xmax = point; }
		if point.1 > ymax.1 { ymax = point; }
		if point.0 < xmin.0 { xmin = point; }
		if point.1 < ymin.1 { ymin = point; }
	}

	let mut maxdist = 0;
	maxdist = max(maxdist, dist(xmax, ymax));
	maxdist = max(maxdist, dist(xmax, ymin));
	maxdist = max(maxdist, dist(xmax, xmin));
	maxdist = max(maxdist, dist(ymax, ymin));
	maxdist = max(maxdist, dist(ymax, xmin));
	maxdist = max(maxdist, dist(ymin, xmin));

	println!("{}", maxdist);
}