You are given three integers, A, B and C.   Among them, two are the same, but the remaining one is different from the rest.   For example, when A=5,B=7,C=5, A and C are the same, but B is different.   Find the one that is different from the rest among the given three integers.
A,B,C = map(int,input().split())
if A == B:
    print('C')
elif B == C:
    print('A')
else:
    print('B')
A,B,C = map(int,input().split())
if A == B:
    print(C)
elif B == C:
    print(A)
else:
    print(B)
