a,b,c = list(map(int,input().split()))

print((a^b^c))
a,b,c = list(map(int,input().split()))

if a==b:

    print(c)

elif a == c:

    print(b)

else:

    print(a)
a, b, c = list(map(int, input().split()))
print((a ^ b ^ c))

a, b, c = list(map(int, input().split()))
if a == b:
    print(c)
elif a == c:
    print(b)
else:
    print(a)

-print((a ^ b ^ c)) +if a == b: +    print(c) +elif a == c: +    print(b) +else: +    print(a)