n=int(input()) if n in [1,9,11,13,15,17,19,21,23,97,99]: print("B") else: print("A")