시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 64 MB 2 2 2 100.000%

문제

Yesterday it was real fun.

Today you wake up and notice that something is just not right. Not just headache, but something else is constantly annoying you. But you just can’t get what exactly. You walk around your room, enjoying the sunlight coming through the open window, through the holes in the roof. . . Stop. There were no holes in the roof until today. Definitely.

Suppressing the urge to call your friends and find out something about the origin of the holes, you decide to fix the roof first. In a modern way.

You’ve decided to nail 3 equal square boards with sides parallel to the sides of the (of course, square) roof to close all the holes, and were just wondering what is the minimal required size for these boards.

You are given N different points on a Cartesian plane and need to find minimal d such that three possibly overlapping d × d squares with sides parallel to coordinate axes can cover all the points (possibly just by the border).

입력

The first line of the input file contains N, 4 ≤ N ≤ 200, 000. Each of the next N lines contain two integers xi and yi – the coordinates of i-th hole (−109 ≤ xi, yi ≤ 109). No two points coincide.

출력

Output the minimal possible d.

예제 입력

4
0 1
0 -1
1 0
-1 0

예제 출력

1

예제 입력 2

12
0 1
0 -1
1 0
-1 0
10 1
10 -1
11 0
9 0
20 1
20 -1
21 0
19 0

예제 출력 2

2

힌트