table=[] Ha=int(input()) Hb=int(input()) Hc=int(input()) table=[(Ha,"A"),(Hb,"B"),(Hc,"C")] table.sort() table.reverse() for _ in table: print(_[1])