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.

Difficulty: EASY
Tags: Mathematics

Starter code:

Solutions:
t = int(input())
for i in range(t):
	(a, b, c) = [int(x) for x in input().split()]
	if (a + b) / 2 < 35 or (b + c) / 2 < 35 or (a + c) / 2 < 35:
		print('Fail')
	else:
		print('Pass')


n = int(input())
for i in range(n):
	(a, b, c) = map(int, input().split())
	d = (a + b) / 2
	e = (b + c) / 2
	f = (a + c) / 2
	if d >= 35 and e >= 35 and (f >= 35):
		print('Pass')
	else:
		print('Fail')


for i in range(int(input())):
	(a, b, c) = map(int, input().split())
	if (a + b) / 2 >= 35 and (a + c) / 2 >= 35 and ((b + c) / 2 >= 35):
		print('Pass')
	else:
		print('Fail')


for _ in range(int(input())):
	(a, b, c) = map(int, input().split())
	if (a + b) // 2 < 35 or (b + c) // 2 < 35 or (c + a) // 2 < 35:
		print('Fail')
	else:
		print('Pass')


def score(a, b, c):
	a1 = (a + b) / 2
	a2 = (b + c) / 2
	a3 = (a + c) / 2
	if a1 < 35 or a2 < 35 or a3 < 35:
		return 'Fail'
	else:
		return 'Pass'
t = int(input())
for i in range(1, t + 1):
	(a, b, c) = map(int, input().split())
	res = score(a, b, c)
	print(res)


T = int(input())
for i in range(T):
	(A, B, C) = map(int, input().split())
	if (A + B) / 2 < 35 or (B + C) / 2 < 35 or (A + C) / 2 < 35:
		print('Fail')
	else:
		print('Pass')


t = int(input())
while t != 0:
	(a, b, c) = map(int, input().split())
	s = {(a + b) / 2 < 35, (b + c) / 2 < 35, (c + a) / 2 < 35}
	if any(s):
		print('Fail')
	else:
		print('Pass')
	t = t - 1


import math
import statistics
n = int(input())
for i in range(n):
	(x, y, z) = map(int, input().split())
	a = statistics.mean([x, y])
	b = statistics.mean([y, z])
	c = statistics.mean([z, x])
	if min(a, b, c) >= 35:
		print('Pass')
	else:
		print('Fail')


t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split(' '))
	if x + y >= 70 and y + z >= 70 and (x + z >= 70):
		print('Pass')
	else:
		print('Fail')


t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split())
	a1 = (x + y) / 2
	a2 = (x + z) / 2
	a3 = (y + z) / 2
	if a1 >= 35 and a2 >= 35 and (a3 >= 35):
		print('Pass')
	else:
		print('Fail')


def avg(a, b):
	c = (a + b) / 2
	if c >= 35:
		return 1
	else:
		return 0
for t in range(int(input())):
	(a, b, c) = map(int, input().split())
	e1 = avg(a, b)
	e2 = avg(b, c)
	e3 = avg(a, c)
	if e1 == 1 and e2 == 1 and (e3 == 1):
		print('Pass')
	else:
		print('Fail')


T = int(input())
for num in range(0, T):
	(A, B, C) = input().split()
	a = int(A)
	b = int(B)
	c = int(C)
	if (a + b) / 2 >= 35 and (b + c) / 2 >= 35 and ((a + c) / 2 >= 35):
		print('Pass')
	else:
		print('Fail')


t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split())
	if (x + y) // 2 < 35 or (y + z) // 2 < 35 or (x + z) // 2 < 35:
		print('Fail')
	else:
		print('Pass')


t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	a1 = (a + b) / 2
	a2 = (b + c) / 2
	a3 = (a + c) / 2
	if a1 >= 35 and a2 >= 35 and (a3 >= 35):
		print('Pass')
	elif a1 < 35 or a2 < 35 or a3 < 35:
		print('Fail')


n = int(input())
l = [list(map(int, input().split())) for i in range(n)]
for i in l:
	k = (i[0] + i[1]) / 2
	p = (i[1] + i[2]) / 2
	m = (i[0] + i[2]) / 2
	if k >= 35 and p >= 35 and (m >= 35):
		print('Pass')
	else:
		print('Fail')


for i in range(int(input())):
	(a, b, c) = map(int, input().split())
	x = (a + b) / 2
	y = (c + b) / 2
	z = (a + c) / 2
	if x < 35 or y < 35 or z < 35:
		print('Fail')
	else:
		print('Pass')


A = int(input())
for i in range(0, A):
	(B, C, D) = input().split()
	a = int(B)
	b = int(C)
	c = int(D)
	if (a + b) / 2 >= 35 and (b + c) / 2 >= 35 and ((a + c) / 2 >= 35):
		print('Pass')
	else:
		print('Fail')