a=[] for i in range(3): a.append(int(input())) for i in a: if i==max(a): print("A") elif i==min(a): print("C") else: print("B")