l = [raw_input() for _ in range(3)] if l[0] == l[1] or l[0] == l[2]: print l[0] else: print l[1]