You start at cell of a grid with rows and columns, and want to reach cell . From a cell you may only move right or down, and every move costs a toll:
- Moving right from to costs ;
- Moving down from to costs .

Some moves in a grid with rows and columns, with their tolls. Moving right (blue) costs the row number, moving down (orange) costs the column number. The start is green, the target is red.
Is there a path from to whose total cost is exactly ? You have to answer independent queries.
Input data
The first line contains the integer , the number of queries. Each of the next lines contains three integers , and .
Output data
You need to write lines: the -th line must contain YES if there exists a path of total cost exactly in the -th query, and NO otherwise. The answers are case-insensitive: for example, yes and Yes are also accepted.
Constraints and clarifications
- .
- .
- .
| # | Score | Constraints |
|---|---|---|
| 0 | 0 | Examples. |
| 1 | 20 | , . |
| 2 | 30 | , . |
| 3 | 50 | No additional restrictions. |
Example
stdin
2
2 3 5
1 1 0
stdout
YES
YES
Explanation
In the first sample case, the grid has rows and columns. The path costs . In the second query the grid is a single cell and the cost is .
Example
stdin
3
3 3 8
2 5 10
4 1 4
stdout
YES
NO
NO
Explanation
In the second sample case, there are multiple paths in a grid with cost , so the answer is YES for . It can be shown that there is no path with cost in a grid of size and no path of cost in a grid.