while True:
try:
[a, b, c] = list(map(int, input().split()))
vote = 0
if a < b < c:
vote = a+b
if vote < c:
print("C")
elif vote > c:
print("B")
elif c < a < b:
vote = c+a
if vote < b:
print("B")
elif vote > b:
print("A")
elif b < c < a:
vote = b+c
if vote < a:
print("A")
elif vote > a:
print("C")
except:
break
while True:
try:
[a, b, c] = list(map(int, input().split()))
vote = 0
if a < b < c:
vote = a+b
if vote < c:
print("C")
elif vote > c:
print("B")
elif c < a < b:
vote = c+a
if vote < b:
print("B")
elif vote > b:
print("A")
elif b < c < a:
vote = b+c
if vote < a:
print("A")
elif vote > a:
print("C")
except:
break