Given a set of points, find the smallest Manhattan distance between any two unique points.
Manhattan distance between two points is defined as the total distance traveled parallel along the -axis or -axis.
Input Specification
The first line will contain the integer .
The next lines will each contain two integers and , representing a point.
Output Specification
A single integer, the smallest Manhattan distance betweeen any two unique points.
Sample Input
3
0 0
10 5
-6 -7
Sample Output
13
Comments