Herminia wants to divide her lands among her four children. Herminia's estate consists of $$$n$$$ possessions, the $$$i$$$-th of which is located at the point $$$(x_i, y_i)$$$ in the plane (where $$$x_i$$$, $$$y_i$$$ are integer coordinates) and has a value $$$v_i$$$.
Herminia will divide her lands as follows: she will choose a point $$$(a, b)$$$ and give each child the possessions contained in one of the four quadrants defined by the point. That is:
Herminia wants each child to receive the same total value in possessions. Help Herminia find the number of points $$$(a, b)$$$ with integer coordinates such that the sum of the values of the possessions in each of the quadrants is equal.
The input begins with a number $$$T$$$ — the number of test cases.
Each test case starts with a line with an integer $$$n$$$, the number of possessions. Next, there are $$$n$$$ lines, the $$$i$$$-th of which has three integers $$$x_i$$$, $$$y_i$$$, and $$$v_i$$$: the coordinates and the value of the $$$i$$$-th possession.
For each test case, your program should print a line with the number of points with integer coordinates $$$(a, b)$$$ such that the values of the possessions in each of the four quadrants defined by those points add up to the same total.
35-1 -2 13 4 22 -5 2-2 -1 1-4 3 210 0 14-1000000000 -1000000000 11000000000 -1000000000 1-1000000000 1000000000 11000000000 1000000000 1
12 0 4000000000000000000
$$$1 \leq T \leq 1000$$$.
$$$1 \leq n \leq 2 \cdot 10^5$$$.
The sum of $$$n$$$ for all cases will be at most $$$2 \cdot 10^5$$$.
$$$-10^9 \leq x_i, y_i \leq 10^9$$$.
There are no repeated pairs $$$(x_i, y_i)$$$.
$$$1 \leq v_i \leq 10^9$$$.
| Name |
|---|


