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

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

if integer2 == integer3:

    print(integer1)

elif integer1 == integer3:

    print(integer2)

else:

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

integer1, integer2, integer3 = list(map(int, input().split()))
if integer2 == integer3:
    print(integer1)
elif integer1 == integer3:
    print(integer2)
else:
    print(integer3)

-A, B, C = list(map(int, input().split())) -print((A if B == C else B if A == C else C)) +integer1, integer2, integer3 = list(map(int, input().split())) +if integer2 == integer3: +    print(integer1) +elif integer1 == integer3: +    print(integer2) +else: +    print(integer3)