Ashish can eat at most one thing. Find out what will Ashish eat for his dinner.
Input Format
- The first line will contain - the number of test cases. Then the test cases follow.
- The first and only line of each test case contains three integers , and - the money Ashish has, the cost of a
PIZZAand the cost of aBURGER.
Output Format
For each test case, output what Ashish will eat. (PIZZA, BURGER or NOTHING).
You may print each character of the string in uppercase or lowercase. (for example, the strings Pizza, pIzZa and piZZa will all be treated as identical).
Constraints
Sample Input 1
3
50 40 60
40 55 39
30 42 37
Sample Output 1
PIZZA
BURGER
NOTHING
Explanation
Test case-1: Ashish has rupees while the cost of PIZZA is . Therefore he can buy a PIZZA for his dinner.
Test case-2: Ashish has rupees. The cost of PIZZA is and the cost of BURGER is . Therefore Ashish can not buy a PIZZA but can buy a BURGER for his dinner.
Test case-3: Ashish has rupees which are not sufficient to buy either PIZZA or BURGER. Thus he can not buy anything and remains hungry :(.
No comments:
Post a Comment