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

if a == b:

  print(c)

elif b == c:

  print(a)

else:

  print(b)
l1, l2, l3 = list(map(int, input().split()))

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

l1, l2, l3 = list(map(int, input().split()))
print((l1 ^ l2 ^ l3))

-a, b, c = list(map(int, input().split())) -if a == b: -    print(c) -elif b == c: -    print(a) -else: -    print(b) +l1, l2, l3 = list(map(int, input().split())) +print((l1 ^ l2 ^ l3))