x,a,b=list(map(int,input().split()));print(('AB'[abs(a-x)>abs(b-x)]))
x,a,b=list(map(int,input().split()))

print(('AB'[(x+x>a+b)^(a>b)]))
x, a, b = list(map(int, input().split()))
print(("AB"[abs(a - x) > abs(b - x)]))

x, a, b = list(map(int, input().split()))
print(("AB"[(x + x > a + b) ^ (a > b)]))

-print(("AB"[abs(a - x) > abs(b - x)])) +print(("AB"[(x + x > a + b) ^ (a > b)]))