P17524 [CodeChef] TESTAVG
普及-
题目描述

Chef has scored A, B, and C marks in 3 different subjects respectively.

Chef will fail if the average score of any two subjects is less than 35. Determine whether Chef will pass or fail.

------ Input Format ------

  • First line will contain T, number of test cases. Then the test cases follow.
  • Each test case contains of a single line of input, three integers A, B, C, denoting the Chef's score in the three subjects.

------ Output Format ------

For each test case, if Chef will pass, print PASS, otherwise print FAIL.

You may print each character of the string in uppercase or lowercase (for example, the strings pass, Pass, pAss, and PASS will all be treated as identical).

------ Constraints ------

$1 ≤ T ≤ 1000$
$0 ≤ A,B,C ≤ 100$

----- Sample Input 1 ------
4
23 47 52
28 36 80
0 100 0
35 35 35

----- Sample Output 1 ------
Pass
Fail
Fail
Pass
----- explanation 1 ------
Test case $1$: The average of the first two subjects is $35$, the average of the first and last subject is $37.5$, whereas the average of the last two subjects is $49.5$. Since all averages are greater than or equal to $35$, Chef will pass.

Test case $2$: Since the average of the first two subjects is $32$ which is less than $35$, Chef will fail.

Test case $3$: Since the average of the first and last subjects subjects is $0$ which is less than $35$, Chef will fail.

Test case $4$: Since the average of any two subjects is $35$ which is greater than or equal to $35$, Chef will pass.

输入格式

见题面

输出格式

见题面

样例输入
4 23 47 52 28 36 80 0 100 0 35 35 35
样例输出
Pass Fail Fail Pass