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



if a == b:

  print(c)

elif a == c:

  print(b)

else:

  print(a)
a = [int(_) for _ in input().split()]

a.sort()

if a[0] == a[1]:

  print((a[2]))

elif a[0] == a[2]:

  print((a[1]))

else:

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

a = [int(_) for _ in input().split()]
a.sort()
if a[0] == a[1]:
    print((a[2]))
elif a[0] == a[2]:
    print((a[1]))
else:
    print((a[0]))

-a, b, c = list(map(int, input().split())) -if a == b: -    print(c) -elif a == c: -    print(b) +a = [int(_) for _ in input().split()] +a.sort() +if a[0] == a[1]: +    print((a[2])) +elif a[0] == a[2]: +    print((a[1])) -    print(a) +    print((a[0]))