l=[]
for i in range(3):
    l.append(input())
from collections import Counter
l=Counter(l)
print(l.most_common()[0][0])