s = [int(input()) for i in range(3)] keys = ['A', 'B', 'C'] s_dict=dict(zip(keys,s)) for k,v in sorted(s_dict.items(), key=lambda x :x[1]): print(str(k))