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: print("A") else: print("B")