import sysfor line in sys.stdin: l = list(map(int, line.split())) print("ABC"[l.index(sorted(l)[-2])]) if sum(l) - 2*max(l) > 0 else print("ABC"[l.index(max(l))])