# PROBLEM LINK:

Author: S. Manuj Nanthan
Tester: Harris Leung
Editorialist: Nishank Suresh

558

None

# PROBLEM:

Chef scored A, B, and C in three subjects. Chef will fail if the average of any two subjects is less than 35. Will Chef fail?

# EXPLANATION:

There are three pairs of subjects. Compute the average of all three of them and check whether any of these three is less than 35 using if conditions.

In fact, it is enough to check the average of only the least two subjects.

# TIME COMPLEXITY

\mathcal{O}(1) per test case.

# CODE:

Editorialist's code (Python)
for _ in range(int(input())):
a, b, c = map(int, input().split())
print('pass' if a+b >= 70 and a+c >= 70 and b+c >= 70 else 'fail')