import sequtils,strutils var N = stdin.readline.parseInt if N == 1: echo "B" else: echo "A"