There are 101 citizens in Chefland. It is election time in Chefland and 3 parties, A, B, and C are contesting the elections. Party A receives X_{A} votes, party B receives X_{B} votes, and party C receives X_{C} votes.

The constitution of Chefland requires a particular party to receive a clear majority to form the government. A party is said to have a clear majority if it receives strictly greater than 50 votes.

If any party has a clear majority, print the winning party (A, B or C). Otherwise, print NOTA.

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

- The first line of input contains a single integer T, denoting the number of test cases. The description of T test cases follows.
- The first and only line of each test case contains 3 space-separated integers — X_{A}, X_{B}, and X_{C}.

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

For each test case, if any party has a clear majority, print the winning party (A, B or C). Otherwise, print NOTA.

You can print each letter of the string in any case (upper or lower) (for instance, strings Nota, nOtA and notA will be considered identical).

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

$1 ≤ T ≤ 500$
$0 ≤ X_{A}, X_{B}, X_{C} ≤ 101$
$X_{A} + X_{B} + X_{C} = 101$

----- Sample Input 1 ------ 
3
80 19 2
20 55 26
50 1 50

----- Sample Output 1 ------ 
A
B
NOTA

----- explanation 1 ------ 
Test Case $1$: Party $A$ has received $80$ votes, which is strictly greater than $50$.

Test Case $2$: Party $B$ has received $55$ votes, which is strictly greater than $50$.

Test Case $3$: None of the parties have received strictly more than $50$ votes.

Difficulty: EASY

Starter code:

Solutions:
T = int(input())
for i in range(T):
	(A, B, C) = map(int, input().split())
	if A > 50:
		print('A')
	elif B > 50:
		print('B')
	elif C > 50:
		print('C')
	else:
		print('NOTA')


t = int(input())
for i in range(0, t):
	(a, b, c) = map(int, input().split())
	if a > 50:
		print('A')
	elif b > 50:
		print('B')
	elif c > 50:
		print('C')
	else:
		print('NOTA')


t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split(' '))
	d = max(a, b, c)
	if d == a and d > 50:
		print('A')
	elif d == b and d > 50:
		print('B')
	elif d == c and d > 50:
		print('C')
	else:
		print('NOTA')


for _ in range(int(input())):
	(a, b, c) = map(int, input().split())
	l = list(map(lambda x: x > 50, [a, b, c]))
	print('ABC'[l.index(True)] if True in l else 'NOTA')


for _ in range(int(input())):
	(Xa, Xb, Xc) = map(int, input().split())
	if Xa > 50:
		print('A')
	elif Xb > 50:
		print('B')
	elif Xc > 50:
		print('C')
	else:
		print('NOTA')


n = int(input())
for i in range(1, n + 1):
	(a, b, c) = map(int, input().split())
	if a > 50:
		print('A')
	elif b > 50:
		print('B')
	elif c > 50:
		print('C')
	else:
		print('NOTA')


for i in range(int(input())):
	(x1, x2, x3) = map(int, input().split())
	if x1 > 50:
		print('A')
	elif x2 > 50:
		print('B')
	elif x3 > 50:
		print('C')
	else:
		print('NOTA')


for _ in range(0, int(input())):
	a = [int(x) for x in input().split()]
	if a[0] > 50:
		print('A')
	elif a[1] > 50:
		print('B')
	elif a[2] > 50:
		print('C')
	else:
		print('NOTA')


for _ in range(int(input())):
	(a, b, c) = map(int, input().split())
	if a > 50:
		print('A')
	elif b > 50:
		print('B')
	elif c > 50:
		print('C')
	else:
		print('NOTA')


Test = int(input())
for Cases in range(Test):
	(VotesA, VotesB, VotesC) = map(int, input().split())

	def Votes():
		if VotesA > 50:
			print('A')
		elif VotesB > 50:
			print('B')
		elif VotesC > 50:
			print('C')
		else:
			print('NOTA')
	Votes()


for i in range(int(input())):
	(s, d, f) = map(int, input().split())
	if s > d and s > f and (s > 50):
		print('A')
	elif d > s and d > f and (d > 50):
		print('B')
	elif f > s and f > d and (f > 50):
		print('C')
	else:
		print('NOTA')


p = int(input())
for i in range(p):
	(x, y, z) = map(int, input().split())
	if x > 50:
		print('A')
	elif y > 50:
		print('B')
	elif z > 50:
		print('C')
	else:
		print('NOTA')


t = int(input())
while t > 0:
	(a, b, c) = map(int, input().split())
	if a >= 51:
		print('A')
	elif b >= 51:
		print('B')
	elif c >= 51:
		print('C')
	else:
		print('NOTA')
	t -= 1


tests = int(input())
for i in range(tests):
	votes = input().split()
	vote_of_a = int(votes[0])
	vote_of_b = int(votes[1])
	vote_of_c = int(votes[2])
	votes_int = []
	for i in range(3):
		votes_int.append(int(votes[i]))
	max_vote = max(vote_of_a, vote_of_b, vote_of_c)
	counts = votes_int.count(max_vote)
	if max_vote > 50 and max_vote == vote_of_a:
		print('A')
	elif max_vote > 50 and max_vote == vote_of_b:
		print('B')
	elif max_vote > 50 and max_vote == vote_of_c:
		print('C')
	else:
		print('NOTA')


T = int(input())
for t in range(T):
	(xa, xb, xc) = map(int, input().split())
	if xa > 50:
		print('A')
	elif xb > 50:
		print('B')
	elif xc > 50:
		print('C')
	else:
		print('NOTA')


def find_winner(a, b, c):
	total_votes = a + b + c
	if a > total_votes / 2:
		return 'A'
	elif b > total_votes / 2:
		return 'B'
	elif c > total_votes / 2:
		return 'C'
	else:
		return 'NOTA'
t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	winner = find_winner(a, b, c)
	print(winner)


for i in range(int(input())):
	l = [int(i) for i in input().split()]
	inn = l.index(max(l))
	if inn == 0 and max(l) > 50:
		print('A')
	elif inn == 1 and max(l) > 50:
		print('B')
	elif inn == 2 and max(l) > 50:
		print('C')
	else:
		print('NOTA')


T = int(input())
while T > 0:
	(a, b, c) = input().split()
	if int(a) > 50:
		print('A')
	elif int(b) > 50:
		print('B')
	elif int(c) > 50:
		print('C')
	else:
		print('NOTA')
	T -= 1


for _ in range(int(input())):
	(A, B, C) = map(int, input().split())
	if A > 50 and B < A and (C < A):
		print('A')
	elif A < B and B > 50 and (C < B):
		print('B')
	elif A < C and B < C and (C > 50):
		print('C')
	else:
		print('NOTA')


T = int(input())
for p in range(T):
	(A, B, C) = map(int, input().split())
	maxm = max(A, B, C)
	if maxm > 50 and maxm == A:
		print('A')
	elif maxm > 50 and maxm == B:
		print('B')
	elif maxm > 50 and maxm == C:
		print('C')
	else:
		print('NOTA')


for i in range(int(input())):
	l = list(map(int, input().split()))
	A = l[0]
	B = l[1]
	C = l[2]
	if A > 50:
		print('A')
	elif B > 50:
		print('B')
	elif C > 50:
		print('C')
	else:
		print('NOTA')


n = int(input())
for i in range(n):
	(a, b, c) = map(int, input().split())
	m = max(a, b, c)
	if m > 50:
		if m == a and m != b and (m != c):
			print('A')
		elif m != a and m == b and (m != c):
			print('B')
		elif m != a and m != b and (m == c):
			print('C')
		else:
			print('NOTA')
	else:
		print('NOTA')


for i in range(int(input())):
	(a, b, c) = map(int, input().split())
	if a > 50 and b > 50 or (a > 50 and c > 50) or (c > 50 and b > 50):
		print('NOTA')
	elif a > 50:
		print('A')
	elif b > 50:
		print('B')
	elif c > 50:
		print('C')
	else:
		print('NOTA')


t = int(input())
for i in range(t):
	(xa, xb, xc) = [int(i) for i in input().split()]
	if xa > 50:
		print('A')
	elif xb > 50:
		print('B')
	elif xc > 50:
		print('C')
	elif xa <= 50 and xb <= 50 and (xb <= 50) or xa == xb or xb == xc or (xa == xc) or (xa == xb == xc):
		print('NOTA')


for t in range(int(input())):
	(A, B, C) = map(int, input().split())
	if A > 50:
		print('A')
	elif B > 50:
		print('B')
	elif C > 50:
		print('C')
	else:
		print('NOTA')


T = int(input())
vals = ['Xa', 'Xb', 'Xc']
for i in range(T):
	(Xa, Xb, Xc) = [int(val) for val in input().split()]
	for (i, val) in enumerate(vals):
		if eval(f'{val} > 50'):
			print(chr(65 + i))
			break
	else:
		print('NOTA')


for i in range(int(input())):
	(x, y, z) = list(map(int, input().split()))
	if x > 50:
		print('A')
	elif y > 50:
		print('B')
	elif z > 50:
		print('C')
	elif x <= 50 and y <= 50 and (z <= 50):
		print('NOTA')


t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	n = a + b + c
	half = n // 2
	if a > half:
		print('A')
	elif b > half:
		print('B')
	elif c > half:
		print('C')
	else:
		print('NOTA')


t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	lst = {a: 'A', b: 'B', c: 'C'}
	win = max(a, b, c)
	if win > 50:
		print(lst.get(max(lst)))
	else:
		print('NOTA')