In a class, there are boys and girls. The teacher wants to divide all the children into groups while ensuring the following conditions are met:
Each group can have no more than people.
Each group must include at least one boy.
Each group must include at least one girl.
Determine if this arrangement is possible.
The first line contains a single integer (1 \le t \le 1000) — the number of test cases.Each test case is described by a single line containing four integers , , , (0 \le n, m \le 100, 0 < n + m, 1 \le k, h \le 100) — representing the number of boys, the number of girls, the number of groups required, and the maximum number of people allowed in each group.
For each test case, print «YES» on a separate line if it is possible to distribute all the children according to the conditions, or «NO» if it is not possible.
Example 1