from collections import Counter

cnt = Counter(list(map(int, input().split())))

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

if a == b: print(c)

elif a == c: print(b)

elif b == c: print(a)
from collections import Counter

cnt = Counter(list(map(int, input().split())))
print((cnt.most_common()[1][0]))

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

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