x,a,b=list(map(int,input().split()))





if abs(x-a)<abs(x-b):

	print("A")

else:

	print("B")

x,a,b=list(map(int,input().split()))



flg=0

if b<a:

	b,a=a,b

	flg=1



ans = ["A","B"]



if 2*x<b+a:

	print((ans[flg]))

else:

	print((ans[-1+flg]))



x, a, b = list(map(int, input().split()))
if abs(x - a) < abs(x - b):
    print("A")
else:
    print("B")

x, a, b = list(map(int, input().split()))
flg = 0
if b < a:
    b, a = a, b
    flg = 1
ans = ["A", "B"]
if 2 * x < b + a:
    print((ans[flg]))
else:
    print((ans[-1 + flg]))

-if abs(x - a) < abs(x - b): -    print("A") +flg = 0 +if b < a: +    b, a = a, b +    flg = 1 +ans = ["A", "B"] +if 2 * x < b + a: +    print((ans[flg])) -    print("B") +    print((ans[-1 + flg]))