N = int(input()) boxes = list(map(int,input().split())) choiceA = 0 choiceB = 0 for candy in boxes: if candy == 0: choiceB += 1 elif candy % 2 == 1: choiceB += 1 elif candy % 2 == 0: choiceA += 1 if choiceA >= choiceB and N % 2 == 0: print("A") elif choiceA >= choiceB and N % 2 == 1: print("B") elif choiceB > choiceA and N % 2 == 1: print("B") else: print("A")