while True:
try:
a,b,c=map(int,input().split())
except EOFError:
break
if a>b and a>c:
if a>b+c:
print('A')
elif b>c:
print('B')
else:
print('C')
if b>a and b>c:
if b>a+c:
print('B')
elif a>c:
print('A')
else:
print('C')
if c>a and c>b:
if c>b+a:
print('C')
elif b>a:
print('B')
else:
print('A')