$$$Nowar$$$ and $$$Abodeh$$$ are organizing their graduation party. To make the place look more festive, they decided to prepare a large rectangular decoration board of size $$$n \times m$$$.
They have collected several decorative pieces that can be placed on the board:
Tiles may be rotated by any multiple of $$$90^\circ$$$. Each tile may be used at most once.
$$$Nowar$$$ has a specific design in mind. He wants the decorations to cover exactly a fraction $$$\frac{a}{b}$$$ of the total board area. $$$Abodeh$$$ is not sure whether this can be achieved using the available tiles, so he asks for your help.
No two tiles may overlap.
Determine whether it is possible to choose and place some of the available tiles so that the total covered area is exactly $$$\frac{a}{b}$$$ of the board's area.
The first line contains a single integer $$$T$$$ — the number of test cases.
Each test case consists of seven integers: $$$[n\ m\ s\ r\ t\ a\ b]$$$
where:
For each test case, print: YES if it is possible to obtain exactly the required area, or NO otherwise.
You may print each letter in any case.
42 2 2 1 0 1 13 3 1 1 1 1 21 1 0 0 1 1 22 3 1 1 0 5 6
YESNOYESNO