H = [] h = INT() H.append((h, 'A')) h = INT() H.append((h, 'B')) h = INT() H.append((h, 'C')) H.sort(reverse=1) for _, a in H: print(a)