from collections import Counter
n = int(input())
s = [input() for i in range(n)]
num = Counter(s)
mx = max(num.values())
for i in sorted(num):
    if num[i] == mx:
        print(i) from collections import Counter n = int(input()) n int(input()) int input() input input() for i in range(n) for i in range(n) i range(n) range n for i in range(n) input() input s = [input() for i in range(n)] s [input() for i in range(n)] num = Counter(s) num Counter(s) Counter s mx = max(num.values()) mx max(num.values()) max num.values() num.values num values for i in sorted(num):
    if num[i] == mx:
        print(i) i sorted(num) sorted num if num[i] == mx:
        print(i) num[i] == mx num[i] num i mx print(i) print i s = [input() for i in range(n)] [input() for i in range(n)] s mx = max(num.values()) max(num.values()) mx n = int(input()) int(input()) n num = Counter(s) Counter(s) num
from collections import Counter
n = int(input())
s = [input() for i in range(n)]
num = Counter(s)
mx = max(num.values())
for i in sorted(num):
    if num[i] == mx:
        print(i)