A = int(input()) B = int(input()) C = int(input()) H = sorted([(A,'A'), (B,'B'), (C, 'C')]) for h in H[::-1]: print(h[1])