from collections import Counter

A = Counter([int(i) for i in input().split()]).most_common()

print((A[1][0]))
a, b, c = list(map(int, input().split()))

if a == b:

    print(c)

elif a == c:

    print(b)

else:

    print(a)
from collections import Counter

A = Counter([int(i) for i in input().split()]).most_common()
print((A[1][0]))

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

-from collections import Counter - -A = Counter([int(i) for i in input().split()]).most_common() -print((A[1][0])) +a, b, c = list(map(int, input().split())) +if a == b: +    print(c) +elif a == c: +    print(b) +else: +    print(a)