Problem: Sereja placed n points on a plane. Now Sereja wants to place on the plane two straight lines, intersecting at a right angle, so that one of the straight lines intersect the Ox axis at an angle of 45 degrees and the maximum distance from the points to the straight lines were minimum. 

In this problem we consider the distance between points (x1, y1) and (x2, y2) equal |x1 - x2| + |y1 - y2|. The distance between the point and the straight lines is the minimum distance from the point to some point belonging to one of the lines.

Help Sereja, find the maximum distance from the points to the optimally located straight lines.

Input

The first line contains integer n (1 ≤ n ≤ 105). Next n lines contain the coordinates of the lines. The i-th line contains two integers xi, yi (|xi|, |yi| ≤ 109).

Output

In a single line print a real number — the answer to the problem. Your answer will be considered correct iff its absolute or relative error doesn't exceed 10 - 6.

Examples

Input

4
0 0
2 0
0 2
2 2


Output

0.000000000000000


Input

4
1 0
0 1
2 1
1 2


Output

1.000000000000000

Solution (in JAVA):

Solution:
import java.io.*;
import java.util.*;

public class Main {
//	static Scanner in;
	static PrintWriter out;
	static StreamTokenizer in; static int next() throws Exception {in.nextToken(); return (int) in.nval;}
//	static BufferedReader in;

	public static void main(String[] args) throws Exception {
//		in = new Scanner(System.in);
		out = new PrintWriter(System.out);
		in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
//		in = new BufferedReader(new InputStreamReader(System.in));

		int n = next();
		int[] ix = new int[n];
		int[] iy = new int[n];
		for (int i = 0; i < n; i++) {
			ix[i] = next();
			iy[i] = next();
		}

		final double[] x = new double[n];
		final double[] y = new double[n];
		
		double sqrt2 = 1;//Math.sqrt(2.0);
		for (int i = 0; i < n; i++) {
			x[i] = sqrt2 * (ix[i] + iy[i]);
			y[i] = sqrt2 * (ix[i] - iy[i]);
		}

		ArrayList<Integer> indx = new ArrayList<Integer>();
		for (int i = 0; i < n; i++) indx.add(i);
		ArrayList<Integer> indy = new ArrayList<Integer>();
		for (int i = 0; i < n; i++) indy.add(i);
		
		Collections.sort(indx, new Comparator<Integer>() {
			public int compare(Integer i1, Integer i2) {
				return x[i1] < x[i2] ? -1 : x[i1] > x[i2] ? 1 : 0;
			}
		});
		Collections.sort(indy, new Comparator<Integer>() {
			public int compare(Integer i1, Integer i2) {
				return y[i1] < y[i2] ? -1 : y[i1] > y[i2] ? 1 : 0;
			}
		});
		
		double inf = 1e10;
		double[] minxto = new double[n + 1];
		double[] maxxto = new double[n + 1];
		double[] minxback = new double[n + 1];
		double[] maxxback = new double[n + 1];

		minxto[0] = inf;
		maxxto[0] = -inf;
		for (int i = 0; i < n; i++) {
			minxto[i + 1] = Math.min(minxto[i], x[indy.get(i)]);
			maxxto[i + 1] = Math.max(maxxto[i], x[indy.get(i)]);
		}
		minxback[n] = inf;
		maxxback[n] = -inf;
		for (int i = n - 1; i >= 0; i--) {
			minxback[i] = Math.min(minxback[i + 1], x[indy.get(i)]);
			maxxback[i] = Math.max(maxxback[i + 1], x[indy.get(i)]);
		}
		
		double[] up = new double[n + 1];
		double[] down = new double[n + 1];
		double[] left = new double[n + 1];
		double[] right = new double[n + 1];

		for (int i = 0; i < n; i++) up[i] = y[indy.get(i)];
		up[n] = inf;
		for (int i = 0; i < n; i++) down[i + 1] = y[indy.get(i)];
		down[0] = -inf;
		
/*		out.println("!!!");
		for (int i = 0; i <= n; i++) {
			out.println(up[i] + " " + down[i]);
		}*/
		for (int i = 0; i < n; i++) right[i] = x[indx.get(i)];
		right[n] = inf;
		for (int i = 0; i < n; i++) left[i + 1] = y[indy.get(i)];
		left[0] = -inf;
		
		double L = 0;
		double R = 2e9+10;

		for (int i = 0; i < 100; i++) {
			double M = (L + R)/2;

			boolean can = false;
			int ind2 = n;
			while (ind2 > 0) {
				if (Math.max(maxxto[0], maxxback[ind2 - 1]) - Math.min(minxto[0], minxback[ind2 - 1]) <= M) ind2--;
				else break;
			}

			for (int ind1 = 0; ind1 <= n; ind1++) {
				while (ind2 <= n) {
					if (Math.max(maxxto[ind1], maxxback[ind2]) - Math.min(minxto[ind1], minxback[ind2]) > M) ind2++;
					else break;
				}

				if (ind2 <= n && down[ind2] - up[ind1] <= M) {
//					System.out.println(ind1 + " " + ind2 + " " + up[ind1] + " " + down[ind2]);
					can = true;
					break;
				}
				
			}
			if (can) R = M;
			else L = M;
//			System.out.println(can);
		}

		out.println(R/2);

		out.close();
	}
}