n = int(input())
s = [input() for _ in range(n)]

s_sort = sorted(s)

s_num = [1]*n

for i in range(1,n):
    if s_sort[i] == s_sort[i-1]:
        s_num[i] += s_num[i-1]

Maxnum = max(s_num)

index_num = [n for n, v in enumerate(s_num) if v == Maxnum]

[print(s_sort[i]) for i in index_num] n = int(input()) n int(input()) int input() input input() for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) input() input s = [input() for _ in range(n)] s [input() for _ in range(n)] s_sort = sorted(s) s_sort sorted(s) sorted s s_num = [1]*n s_num [1]*n [1] 1 n for i in range(1,n):
    if s_sort[i] == s_sort[i-1]:
        s_num[i] += s_num[i-1] i range(1,n) range 1 n if s_sort[i] == s_sort[i-1]:
        s_num[i] += s_num[i-1] s_sort[i] == s_sort[i-1] s_sort[i] s_sort i s_sort[i-1] s_sort i-1 i 1 s_num[i] += s_num[i-1] s_num[i] s_num i s_num[i-1] s_num i-1 i 1 Maxnum = max(s_num) Maxnum max(s_num) max s_num n for n, v in enumerate(s_num) if v == Maxnum for n, v in enumerate(s_num) if v == Maxnum n v enumerate(s_num) enumerate s_num v == Maxnum v Maxnum if v == Maxnum n index_num = [n for n, v in enumerate(s_num) if v == Maxnum] index_num [n for n, v in enumerate(s_num) if v == Maxnum] print(s_sort[i]) for i in index_num for i in index_num i index_num for i in index_num print(s_sort[i]) print s_sort[i] s_sort i [print(s_sort[i]) for i in index_num] s_num = [1]*n [1]*n s_num s_sort = sorted(s) sorted(s) s_sort n = int(input()) int(input()) n index_num = [n for n, v in enumerate(s_num) if v == Maxnum] [n for n, v in enumerate(s_num) if v == Maxnum] index_num s = [input() for _ in range(n)] [input() for _ in range(n)] s Maxnum = max(s_num) max(s_num) Maxnum
n = int(input())
s = [input() for _ in range(n)]

s_sort = sorted(s)

s_num = [1]*n

for i in range(1,n):
    if s_sort[i] == s_sort[i-1]:
        s_num[i] += s_num[i-1]

Maxnum = max(s_num)

index_num = [n for n, v in enumerate(s_num) if v == Maxnum]

[print(s_sort[i]) for i in index_num]
