Two Rectangles

No attempts yetTime limit1sMemory limit128 MB

Problem

You are given NN points in the plane. Cover all of them with two axis-parallel rectangles, and make the area of the larger rectangle as small as you can.

The two rectangles must not overlap. Touching along an edge or at a corner is allowed. The two rectangles do not have to be the same shape or the same size. A rectangle may have width or height 00, and then its area is 00.

Every point has to lie inside one of the two rectangles or on its boundary.

The arrangement in the picture is not an answer, because the larger rectangle can still be shrunk. The 2020 points drawn there are the second block of the first test case below.

Input

Input arrives on standard input. The first line holds the number of test cases TT (1T201 \le T \le 20).

Each test case starts with a line holding the number of points NN (1N100001 \le N \le 10000). The next NN lines each hold the coordinates of one point as two integers. Every coordinate is an integer between 30000-30000 and 3000030000. The same point may be given more than once.

Output

Write to standard output. For each test case, print on its own line the area of the larger of the two rectangles, minimized.