N=int(input()) C=list(map(int,input().split())) if sum(C)%2==1: two=0 for c in C: if c>=2: two+=1 if two<=1: print("A") exit() print("B")