n = int(input()) if n == 1: print("B") else: print("A")