key = ["A", "B", "C"] value = [int(input()) for _ in range(3)] dic = dict(zip(key, value)) ans = sorted(dic.items(), key=lambda x:x[1], reverse=True) for k, v in ans: print(k)