A, B, C = [int(x) for x in input().split()]



if A == B:

	print(C)

else:

	if A == C:

		print(B)

	else:

		print(A)
A, B, C = input().split()



if A == B:

	print(C)

else:

	if A == C:

		print(B)

	else:

		print(A)
A, B, C = [int(x) for x in input().split()]
if A == B:
    print(C)
else:
    if A == C:
        print(B)
    else:
        print(A)

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

-A, B, C = [int(x) for x in input().split()] +A, B, C = input().split()