A,B,C=list(map(int,input().split()))



if A==B:

	print(C)

else:

	if A==C:

		print(B)

	else:

		print(A)

		

A,B,C=list(map(int,input().split()))



if A==B:

	print(C)

elif B==C:

	print(A)

else:

	print(B)
A, B, C = list(map(int, input().split()))
if A == B:
    print(C)
else:
    if A == C:
        print(B)
    else:
        print(A)

A, B, C = list(map(int, input().split()))
if A == B:
    print(C)
elif B == C:
    print(A)
else:
    print(B)

+elif B == C: +    print(A) -    if A == C: -        print(B) -    else: -        print(A) +    print(B)