1936.1대1 가위바위보

풀이

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

if a - b == 1 or a - b == -2:
    print('A')
else:
    print('B')