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

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

    print("B")

else:

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

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

    print("A")

else:

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

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

-if abs(x - a) > abs(x - b): +if abs(a - x) < abs(b - x): +    print("A") +else: -else: -    print("A")