from collections import Counter def main(): balloon = list(input() for _ in range(3)) balloon_counter = Counter(balloon) print(balloon_counter.most_common(1)[0][0]) if __name__ == "__main__": main()