values = [int(input()) for i in range(3)] keys = ['A', 'B', 'C'] d = dict(zip(keys, values)) sorted_height = sorted(d.items(), reverse=True, key=lambda x:x[1]) for i in range(3): print(sorted_height[i][0])