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

A = abs(x - a)

B = abs(x - b)

if(A < B):

  print('A')

else:

  print('B')
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()))
A = abs(x - a)
B = abs(x - b)
if A < B:
    print("A")
else:
    print("B")

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

-A = abs(x - a) -B = abs(x - b) -if A < B: +if abs(x - a) < abs(x - b):