A,B,C=(int(input()) for i in range(3)) h={"A":A,"B":B,"C":C} #for k in sorted(h.values for k, v in sorted(h.items(), key=lambda x: -x[1]): print(k)