You have $$$a$$$ coins with a value of $$$1$$$,$$$b$$$ coins with a value of $$$10$$$ and $$$c$$$ coins with a value of $$$100$$$.
Determine if it possible to combine these coins to create a value of exactly $$$n$$$?
The first line contains a positive integer $$$t$$$ $$$(1 \leq t \leq 10^5)$$$ — the number of test cases.
The only line for each test case contains four integers $$$a,b,c,n$$$ $$$(0 \leq a,b,c,n \leq 10^9)$$$.
For each test case, output YES if it is possible to combine these coins to create a value of exactly $$$n$$$.Otherwise,output NO.
40 0 0 010 9 1 20112 9 1 20118 8 1000000000 999
YES NO YES NO
| Name |
|---|


