HA = int(input()) HB = int(input()) HC = int(input()) box = [[HA,"A"],[HB,"B"],[HC,"C"]] box.sort(key=lambda x:x[0],reverse=True) for a in box: b,c = a print(c)