Alice and Bob were having an argument about which of them is taller than the other. Charlie got irritated by the argument, and decided to settle the matter once and for all.

Charlie measured the heights of Alice and Bob, and got to know that Alice's height is X centimeters and Bob's height is Y centimeters. Help Charlie decide who is taller.

It is guaranteed that X \neq Y.

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

- The first line of input will contain an integer T — the number of test cases. The description of T test cases follows.
- The first and only line of each test case contains two integers X and Y, as described in the problem statement. 

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

For each test case, output on a new line \texttt{A} if Alice is taller than Bob, else output \texttt{B}. 
The output is case insensitive, i.e, both \texttt{A} and \texttt{a} will be accepted as correct answers when Alice is taller.

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

$1 ≤ T ≤ 1000$
$100 ≤ X, Y ≤ 200$
$X \neq Y$

----- Sample Input 1 ------ 
2
150 160
160 150
----- Sample Output 1 ------ 
B
A
----- explanation 1 ------ 
Test case $1$: In this case, $150 < 160$ so Bob is taller than Alice.

Test case $2$: In this case, $160 > 150$ so Alice is taller than Bob.

Difficulty: EASY

Solutions:
t = int(input())
for _ in range(t):
	(x, y) = map(int, input().split())
	if x > y:
		print('A')
	else:
		print('B')


n = int(input())
for i in range(n):
	(k, m) = map(int, input().split())
	if k > m:
		print('A')
	else:
		print('B')


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


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


n = int(input())
for i in range(n):
	(x, y) = map(int, input().split())
	if x > y:
		print('A')
	else:
		print('B')


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


t = int(input())
for i in range(0, t):
	(x, y) = map(int, input().split())
	if x > y:
		print('A')
	else:
		print('B')


T = int(input())
for i in range(T):
	(Alice, Bob) = map(int, input().split())
	if Alice > Bob:
		print('A')
	else:
		print('B')


x = int(input())
for i in range(x):
	(a, b) = map(int, input().split())
	if a > b:
		print('A')
	elif a < b:
		print('B')


n = int(input())
for i in range(n):
	(p, q) = map(int, input().split())
	print('B') if p < q else print('A')


T = int(input())
for i in range(T):
	(X, Y) = map(int, input().split())
	if X > Y:
		print('A')
	else:
		print('B')


T = int(input())
for i in range(T):
	(N, M) = map(int, input().split())
	if N < M:
		print('B')
	else:
		print('A')


TC = int(input())
for i in range(TC):
	(A, B) = map(int, input().split())
	if A < B and B > A:
		print('B')
	else:
		print('A')


t = int(input())
res = []
for i in range(t):
	inpt = [int(x) for x in input().split()]
	a = inpt[0]
	b = inpt[1]
	if a > b:
		res.append('A')
	else:
		res.append('B')
for ele in res:
	print(ele)


TC = int(input())
for T in range(TC):
	(x, y) = map(int, input().split())
	if x > y:
		print('A')
	else:
		print('B')


t = int(input())

def tall(t):
	x = []
	for i in range(1, t + 1):
		n = list(map(int, input().split()))
		x.append(n)
	for j in x:
		(a, b) = j
		if a > b:
			print('A')
		else:
			print('B')
tall(t)


def taller_person(X, Y):
	if X > Y:
		return 'A'
	else:
		return 'B'
t = int(input())
for i in range(t):
	(X, Y) = map(int, input().split())
	result = taller_person(X, Y)
	print(result)


t = int(input())
for i in range(t):
	(x, y) = [int(x) for x in input().split()]
	if x < y:
		print('B')
	elif x > y:
		print('A')


t = int(input())
for i in range(0, t):
	(a, b) = input().split()
	x = int(a)
	y = int(b)
	if x > y:
		print('A')
	else:
		print('B')


test_cases = int(input())
for i in range(test_cases):
	heights = list(map(int, input().split()))
	if heights[0] > heights[-1]:
		print('A')
	else:
		print('B')


s = int(input())
for i in range(s):
	(A, B) = list(map(int, input().split()))
	if A > B:
		print('A')
	else:
		print('B')


test = int(input())
ans = []
while test:
	test = test - 1
	(a, b) = [int(x) for x in input().split()]
	if a > b:
		ans.append('A')
	else:
		ans.append('B')
for i in ans:
	print(i)


n = int(input())
for i in range(n):
	(alice, bob) = map(int, input().split(' '))
	if alice > bob:
		print('A')
	else:
		print('B')


T = int(input())
for i in range(0, T):
	(a, b) = map(int, input().split())
	if a > b:
		print('A')
	else:
		print('B')