print('B' if int(input()) == 1 else 'A')