Chef is struggling to pass a certain college course. The test has a total of N question, each question carries 3 marks for a correct answer and −1 for an incorrect answer. Chef is a risk-averse person so he decided to attempt all the questions. It is known that Chef got X questions correct and the rest of them incorrect. For Chef to pass the course he must score at least P marks. Will Chef be able to pass the exam or not?
Input Format
First line will contain T, number of testcases. Then the testcases follow.
Each testcase contains of a single line of input, three integers N,X,P.
Output Format
For each test case output "PASS" if Chef passes the exam and "FAIL" if Chef fails the exam.
You may print each character of the string in uppercase or lowercase (for example, the strings "pAas", "pass", "Pass" and "PASS" will all be treated as identical).
Sample Input 1
3
5 2 3
5 2 4
4 0 0
Sample Output 1
PASS
FAIL
FAIL
Explanation
Test case 1: Chef gets 2 questions correct giving him 6 marks and since he got 3 questions incorrect so he faces a penalty of −3. So Chef's final score is 3 and the passing marks are also 3, so he passes the exam :)
Test case 2: Chef's total marks are 3 and since the passing marks are 4, Chef fails the test :(
Test case 3: Chef got all the problems wrong and thus his total score is −4. Since the passing marks are 0, Chef fails the exam :(
Solution
Add input in Stdin Inputs