import std.container;
import std.range;
import std.algorithm;
import std.array;
import std.string;
import std.conv;
import std.stdio;
import std.container;

void main() {
	int n;
	readf("%s\n", &n);

	auto a = new int[n];
	auto b = new int[n];
	foreach (i;0..n) {
		int x, y;
		readf("%s %s\n", &x, &y);
		a[i] = x + y;
		b[i] = x - y;
	}

	a.sort;
	b.sort;

	max(a[$ - 1] - a[0], b[$ - 1] - b[0]).writeln;
}
