N = int(input())

ss = dict()
for i in range(N):
    s = input()
    ss[s] = ss.get(s, 0) + 1
sss = [(-b, a) for a, b in ss.items()]
sss.sort()
maxa = sss[0][0]
for a, b in sss:
    if maxa != a:
        break
    print(b) N = int(input()) N int(input()) int input() input ss = dict() ss dict() dict for i in range(N):
    s = input()
    ss[s] = ss.get(s, 0) + 1 i range(N) range N s = input() s input() input ss[s] = ss.get(s, 0) + 1 ss[s] ss s ss.get(s, 0) + 1 ss.get(s, 0) ss.get ss get s 0 1 (-b, a) for a, b in ss.items() for a, b in ss.items() a b ss.items() ss.items ss items for a, b in ss.items() (-b, a) -b b a sss = [(-b, a) for a, b in ss.items()] sss [(-b, a) for a, b in ss.items()] sss.sort() sss.sort sss sort maxa = sss[0][0] maxa sss[0][0] [0] sss 0 0 for a, b in sss:
    if maxa != a:
        break
    print(b) a b sss if maxa != a:
        break
     maxa != a maxa a break print(b) print b N = int(input()) int(input()) N maxa = sss[0][0] sss[0][0] maxa s = input() input() s ss = dict() dict() ss sss = [(-b, a) for a, b in ss.items()] [(-b, a) for a, b in ss.items()] sss
N = int(input())

ss = dict()
for i in range(N):
    s = input()
    ss[s] = ss.get(s, 0) + 1
sss = [(-b, a) for a, b in ss.items()]
sss.sort()
maxa = sss[0][0]
for a, b in sss:
    if maxa != a:
        break
    print(b)
