You have been gifted a puzzle, where each piece of this puzzle is a square with a side length of one. You can glue any picture onto this puzzle, cut it, and obtain an almost ordinary jigsaw puzzle.
Your friend is an avid mathematician, so he suggested you consider the following problem. Is it possible to arrange the puzzle pieces in such a way that the following conditions are met:
Can you handle it?
For this figure, the ratio of the perimeter to the area is $$$\frac{11}{9}$$$ Each test consists of several test cases. The first line contains a single integer $$$t$$$ ($$$1 \le t \le 10$$$) — the number of test cases. The description of the test cases follows.
The only line of each test case contains two integers $$$p$$$ and $$$s$$$ ($$$1 \le p, s \le 50$$$).
For each test case:
21 131 4
20 3 7 3 8 6 4 6 5 3 5 4 4 4 5 4 3 3 4 5 3 5 4 5 7 3 6 4 6 5 5 5 6 4 7 4 8 6 6 6 7 -1
24 212 5
24 -7 2 -3 -3 -7 -5 -7 1 -3 2 -7 -2 -3 -5 -7 -6 -5 -6 -3 -4 -3 -6 -7 0 -6 -6 -7 -3 -5 2 -7 -1 -3 1 -4 -6 -3 0 -7 -4 -6 2 -4 2 -3 -1 -3 -2 5 0 0 0 1 1 0 -1 0 0 -1
In the first test case of the first test, the figure may look like this:
In the second test, the figures look like this:
![]() | ![]() |
Note that the internal perimeter is also taken into account!
| Name |
|---|


