Given N points, find the smallest axis-aligned square with integer vertices that strictly contains at least N-2 of the points, and output its area.
There are NNN points on the coordinate plane. Find the square of smallest area that satisfies all three conditions below.
Write a program that prints the smallest area of such a square.
The first line contains the number of points NNN. (3≤N≤503 \le N \le 503≤N≤50)
Each of the next NNN lines contains the coordinates xxx and yyy of one point, separated by a space. (−109≤x,y≤109-10^9 \le x, y \le 10^9−109≤x,y≤109)
No point is given more than once.
Print the area of the smallest square that satisfies the conditions.