ABC = {} ABC["A"] = int(input()) ABC["B"] = int(input()) ABC["C"] = int(input()) Sort = sorted(ABC) for n in Sort : print(n)