Problem
Chef wants to buy a stock whose price was
rupees when the market opened. He will buy the stock if and only if its price is in the range . The price of the stock has changed by by the time he was trying to buy the stock. Will he be able to buy the stock?
Input Format
- First line of the input contains , the number of testcases. Then the test cases follow.
- Each test case contains space-separated integers in a single line.
Output Format
For each test case, if Chef buys the stock print YES, otherwise print NO.
You may print each character of the string in uppercase or lowercase (for example, the strings yEs, yes, Yes, and YES will all be treated as identical).
Constraints
Sample 1:
Input
Output
3
100 93 108 7
100 94 100 -7
183 152 172 -17Yes
No
NoExplanation:
- Test Case : The price of the stock after gaining will become , which is in Chef's range of . Hence, Chef will buy the stock.
- Test Case : The price of the stock after falling will become , which is not in Chef's range of . Hence, Chef will not buy the stock.
- Test Case : The price of the stock after falling will become , which is not in Chef's range of . Hence, Chef will not buy the stock.
ANSWER