The roof is a rectangle of size $$$w \times h$$$ with the bottom left corner at the point $$$(0, 0)$$$ on the plane. Your team needs to completely cover this roof with identical roofing sheets of size $$$a \times b$$$, with the following conditions:
A novice from your team has already placed two such sheets on the roof in such a way that the sheets do not overlap and each of them partially covers the roof.
Your task is to determine whether it is possible to completely tile the roof without removing either of the two already placed sheets.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
The first line of each test case contains four integers $$$w$$$, $$$h$$$, $$$a$$$, and $$$b$$$ ($$$1 \le w, h, a, b \le 10^9$$$) — the dimensions of the roof and the dimensions of the roofing sheets, respectively.
The second line of each test case contains four integers $$$x_1$$$, $$$y_1$$$, $$$x_2$$$, and $$$y_2$$$ ($$$-a + 1 \le x_1, x_2 \le w - 1, -b + 1 \le y_1, y_2 \le h - 1$$$) — the coordinates of the bottom left corners of the already placed roofing sheets. It is guaranteed that these sheets do not overlap.
For each test case, output "Yes" (without quotes) if it is possible to completely tile the roof without removing either of the two already placed tiles, and "No" (without quotes) otherwise.
You can output the answer in any case (upper or lower). For example, the strings "yEs", "yes", "Yes", and "YES" will be recognized as positive responses.
76 5 2 3-1 -2 5 44 4 2 20 0 3 110 9 3 20 0 4 310 9 3 20 0 6 35 5 2 2-1 -1 4 -15 5 2 2-1 -1 2 37 8 2 40 0 0 5
Yes No No Yes No Yes No
In the first test case, it is possible to add $$$8$$$ roofing sheets as follows:
In the second test case, it is impossible to completely tile the roof: