def self_sort(x):
check=False
while(check==False):
check=True
for i in range(1,len(x)):
if(x[i-1][1]<x[i][1]):
check=False
break
for i in range(1,len(x)):
if(x[i-1][1]<x[i][1]):
temp=x[i]
x[i]=x[i-1]
x[i-1]=temp
return x
def main():
a,b,c=map(int,input().split())
arry=[['A',a],['B',b],['C',c]]
arry=self_sort(arry)
arry[1][1]+=arry[2][1]
arry[2][1]=0
arry=self_sort(arry)
print(arry[0][0])
while(1):
try:
main()
except:
break