Alice and Bob are playing a cool new game called "King Game." The King Game consists of a $$$300 \times 300$$$ board and two pieces that can be placed on certain positions on the board. For convenience, we use 2D coordinates $$$(x, y)$$$ to represent the positions where pieces are placed, where $$$1 \leq x, y \leq 300$$$.
The rules of the King Game are as follows:
Alice and Bob are going to play $$$T$$$ games, and they have already planned the starting coordinates for each game. Can you tell them, for each game, how many winning first moves the "first player" has under the condition that both players play optimally?
The first line contains a positive integer $$$T$$$, representing the number of games.
The next $$$T$$$ lines each contain four integers $$$x_1, y_1, x_2, y_2$$$, representing the starting coordinates of the pieces for one game.
For each game, output a single integer on a new line representing the number of winning first moves the first player has.
51 2 3 43 1 4 26 6 2 23 2 2 31 12 3 9
1 2 2 0 0
| Name |
|---|


