Alice, Bob, and Charlie participated in a 400-metre race.  
The time taken by Alice, Bob, and Charlie to complete the race was X, Y, and Z seconds respectively. Note that X, Y, and Z are distinct.

Determine the person having the highest average speed in the race.

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

- The first line of input will contain a single integer T, denoting the number of test cases.
- Each test case consists of multiple lines of input.
- The first line of each test case contains three space-separated integers X, Y, and Z — the time taken by Alice, Bob, and Charlie to complete the race.

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

For each test case, output on a new line:
- ALICE, if Alice had the highest average speed.
- BOB, if Bob had the highest average speed.
- CHARLIE, if Charlie had the highest average speed.

Note that you may print each character in uppercase or lowercase. For example, the strings BOB, bob, Bob, and BoB are all considered identical.

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

$1 ≤ T ≤ 1000$
$1 ≤ X, Y, Z ≤ 100$
$X, Y,$ and $Z$ are distinct.

----- Sample Input 1 ------ 
3
1 2 8
4 100 1
7 3 5

----- Sample Output 1 ------ 
ALICE
CHARLIE
BOB

----- explanation 1 ------ 
Test case $1$: The time taken by the three participants to complete a $400$ metre race was $1, 2, $ and $8$ respectively. Thus, their respective speeds were $\frac{400}{1} = 400, \frac{400}{2} = 200,$ and $\frac{400}{8} = 50$ metres per second respectively.

Thus, Alice has the maximum speed.

Test case $2$: The time taken by the three participants to complete a $400$ metre race was $4, 100, $ and $1$ respectively. Thus, their respective speeds were $\frac{400}{4} = 100, \frac{400}{100} = 4,$ and $\frac{400}{1} = 400$ metres per second respectively.

Thus, Charlie has the maximum speed.

Test case $3$: Since Bob takes the minimum time to complete the race, he has the maximum average speed.

Difficulty: EASY

Solutions:
for _ in range(int(input())):
	(a, b, c) = [int(a) for a in input().split()]
	x = 400 / a
	y = 400 / b
	z = 400 / c
	if max(x, y, z) == x:
		print('ALICE')
	elif max(x, y, z) == z:
		print('CHARLIE')
	else:
		print('BOB')


t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split())
	if x < y and x < z:
		print('ALICE')
	elif y < x and y < z:
		print('BOB')
	else:
		print('CHARLIE')


for _ in range(int(input())):
	(x, y, z) = map(int, input().split())
	x1 = 400 / x
	y1 = 400 / y
	z1 = 400 / z
	if x1 > y1 and x1 > z1:
		print('ALICE')
	elif y1 > x1 and y1 > z1:
		print('BOB')
	elif z1 > x1 and z1 > y1:
		print('CHARLIE')


for _ in range(int(input())):
	(a, b, c) = list(map(int, input().split()))
	if a < b and a < c:
		print('ALICE')
	elif b < a and b < c:
		print('BOB')
	else:
		print('CHARLIE')


t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	if a == min(a, b, c):
		print('ALICE')
	elif b == min(a, b, c):
		print('BOB')
	else:
		print('CHARLIE')


t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split())
	m = min(x, y, z)
	if m == x:
		print('ALICE')
	elif m == y:
		print('BOB')
	elif m == z:
		print('CHARLIE')


for _ in range(int(input())):
	(a, b, c) = map(int, input().split())
	a = 400 / a
	b = 400 / b
	c = 400 / c
	if max(a, b, c) == a:
		print('ALICE')
	elif max(a, b, c) == b:
		print('BOB')
	else:
		print('CHARLIE')


def race(x, y, z):
	s1 = 400 / x
	s2 = 400 / y
	s3 = 400 / z
	if s1 > s2 and s1 > s3:
		return 'ALICE'
	elif s2 > s1 and s2 > s3:
		return 'BOB'
	else:
		return 'CHARLIE'
t = int(input())
for i in range(1, t + 1):
	(x, y, z) = map(int, input().split())
	res = race(x, y, z)
	print(res)


x = int(input())
for i in range(x):
	(a, b, c) = map(int, input().split())
	z = 400 / a
	w = 400 / b
	v = 400 / c
	if z > w and z > v:
		print('ALICE')
	elif w > z and w > v:
		print('BOB')
	else:
		print('CHARLIE')


n = int(input())
for i in range(0, n):
	(a, b, c) = map(int, input().split())
	if a < b and a < c:
		print('ALICE')
	elif b < a and b < c:
		print('BOB')
	else:
		print('CHARLIE')


def average(A, B, C):
	A_avg = 400 / A
	B_avg = 400 / B
	C_avg = 400 / C
	if A_avg == max(A_avg, B_avg, C_avg):
		return 'ALICE'
	elif B_avg == max(A_avg, B_avg, C_avg):
		return 'BOB'
	elif C_avg == max(A_avg, B_avg, C_avg):
		return 'CHARLIE'
T = int(input())
for i in range(T):
	(A, B, C) = map(int, input().split())
	print(average(A, B, C))


a = int(input())
for i in range(a):
	(x, y, z) = map(int, input().split())
	if min(x, y, z) == x:
		print('ALICE')
	elif min(x, y, z) == y:
		print('BOB')
	else:
		print('CHARLIE')


T = int(input())
for i in range(T):
	(X, Y, Z) = map(int, input().split())
	x = 400 / X
	y = 400 / Y
	z = 400 / Z
	if x > y and x > z:
		print('ALICE')
	elif y > x and y > z:
		print('BOB')
	else:
		print('CHARLIE')


t = int(input())
while t > 0:
	(x, y, z) = map(int, input().split())
	if x < y and x < z:
		print('ALICE')
	elif y < x and y < z:
		print('BOB')
	else:
		print('CHARLIE')
	t -= 1


for i in range(int(input())):
	(X, Y, Z) = map(int, input().split())
	avg_x = 400 / X
	avg_y = 400 / Y
	avg_z = 400 / Z
	winner = max(avg_x, avg_y, avg_z)
	if winner == avg_x:
		print('ALICE')
	elif winner == avg_y:
		print('BOB')
	else:
		print('CHARLIE')


t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split())
	xs = 400 / x
	ys = 400 / y
	zs = 400 / z
	if xs > ys and xs > zs:
		print('ALICE')
	elif ys > xs and ys > zs:
		print('BOB')
	else:
		print('CHARLIE')


T = int(input())
for i in range(T):
	(a, b, c) = list(map(int, input().split()))
	x = 400 / a
	y = 400 / b
	z = 400 / c
	if x > y and x > z:
		print('ALICE')
	elif y > z and y > x:
		print('BOB')
	else:
		print('CHARLIE')


for i in range(int(input())):
	(X, Y, Z) = map(int, input().split())
	if min(X, Y, Z) == X:
		print('ALICE')
	elif min(X, Y, Z) == Y:
		print('BOB')
	elif min(X, Y, Z) == Z:
		print('CHARLIE')


import sys
input = sys.stdin.readline

def nxt():
	return int(input())

def solve():
	(x, y, z) = map(float, input().split())
	(q, t, e) = (400 / x, 400 / y, 400 / z)
	maxi = max(q, t, e)
	if maxi == q:
		print('ALICE')
	elif maxi == t:
		print('BOB')
	else:
		print('CHARLIE')
t = nxt()
while t > 0:
	solve()
	t -= 1


t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split())
	a = 400 / x
	b = 400 / y
	c = 400 / z
	if a > b:
		if a > c:
			print('ALICE')
		else:
			print('CHARLIE')
	elif b > c:
		print('BOB')
	else:
		print('CHARLIE')


t = int(input())
while t != 0:
	(a, b, c) = map(int, input().split())
	if min(a, b, c) == a:
		print('ALICE')
	elif min(a, b, c) == b:
		print('BOB')
	else:
		print('CHARLIE')
	t = t - 1


for i in range(int(input())):
	(a, b, c) = list(map(int, input().split()))
	d = 400 / a
	e = 400 / b
	f = 400 / c
	if max(d, e, f) == d:
		print('ALICE')
	elif max(d, e, f) == f:
		print('CHARLIE')
	else:
		print('BOB')


T = int(input())
for i in range(T):
	(X, Y, Z) = map(int, input().split())
	A = 400 / X
	B = 400 / Y
	C = 400 / Z
	if C < A and B < A:
		print('ALICE')
	elif C < B and A < B:
		print('BOB')
	elif A < C and B < C:
		print('CHARLIE')


import math
for t in range(int(input())):
	(x, y, z) = map(int, input().split())
	x1 = 400 / x
	y1 = 400 / y
	z1 = 400 / z
	if x1 > y1 and x1 > z1:
		print('ALICE')
	elif y1 > x1 and y1 > z1:
		print('BOB')
	else:
		print('CHARLIE')


t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	a1 = 400 / a
	b1 = 400 / b
	c1 = 400 / c
	if a1 > b1 and a1 > c1:
		print('ALICE')
	elif b1 > c1:
		print('BOB')
	else:
		print('CHARLIE')


t = int(input())
for i in range(t):
	(a, b, c) = map(int, input().split())
	sa = 400 / a
	sb = 400 / b
	sc = 400 / c
	if sa > sb and sa > sc:
		print('ALICE')
	elif sb > sa and sb > sc:
		print('BOB')
	else:
		print('CHARLIE')


T = int(input())
for _ in range(T):
	(x, y, z) = map(int, input().split())
	a = min(x, y, z)
	if a == x:
		print('ALICE')
	elif a == y:
		print('BOB')
	elif a == z:
		print('CHARLIE')


T = int(input())
for i in range(T):
	(A, B, C) = map(int, input().split())
	if 400 / A > 400 / B and 400 / A > 400 / C:
		print('ALICE')
	elif 400 / B > 400 / A and 400 / B > 400 / C:
		print('BOB')
	else:
		print('CHARLIE')


t = int(input())
for i in range(t):
	(x, y, z) = map(int, input().split())
	maxx = max(400 / x, 400 / y, 400 / z)
	if maxx == 400 / x:
		print('ALICE')
	elif maxx == 400 / y:
		print('BOB')
	else:
		print('CHARLIE')


n = int(input(''))
for i in range(n):
	(X, Y, Z) = map(int, input('').split())
	P = 400 / X
	Q = 400 / Y
	R = 400 / Z
	if P > Q and P > R:
		print('ALICE')
	elif Q > P and Q > R:
		print('BOB')
	elif R > Q and R > P:
		print('CHARLIE')