import numpy as np ha = int(input()) hb = int(input()) hc = int(input()) h = [ha, hb, hc] rank = np.argsort(h) rank = rank[::-1] for e in rank: code = ord("A") + e char = chr(code) print(char)