a = ['A', 'B', 'C'] b = [int(i) for i in input().split(' ')] for i in b: if b.count(i) == 1: idx = b.index(i) print(a[idx])