Sunuke, A ,B = list(map(int,input().split()))

if abs(Sunuke-A) < abs(Sunuke-B):

    print("A")

else:

    print("B")
Sunuke, A ,B = list(map(int,input().split()))

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

Sunuke, A, B = list(map(int, input().split()))
print(("A" if abs(Sunuke - A) < abs(Sunuke - B) else "B"))

-if abs(Sunuke - A) < abs(Sunuke - B): -    print("A") -else: -    print("B") +print(("A" if abs(Sunuke - A) < abs(Sunuke - B) else "B"))