n = int(input())
d = {}
for _ in range(n):
    s = input()
    d.setdefault(s,0)
    d[s] -= 1


t = []
for k,v in d.items():
    t.append((v,k))

t.sort()
num = t[0][0]
for v,s in t:
    if v == num:
        print(s) n = int(input()) n int(input()) int input() input d = {} d {} for _ in range(n):
    s = input()
    d.setdefault(s,0)
    d[s] -= 1 _ range(n) range n s = input() s input() input d.setdefault(s,0) d.setdefault d setdefault s 0 d[s] -= 1 d[s] d s 1 t = [] t [] for k,v in d.items():
    t.append((v,k)) k v d.items() d.items d items t.append((v,k)) t.append t append (v,k) v k t.sort() t.sort t sort num = t[0][0] num t[0][0] [0] t 0 0 for v,s in t:
    if v == num:
        print(s) v s t if v == num:
        print(s) v == num v num print(s) print s num = t[0][0] t[0][0] num n = int(input()) int(input()) n s = input() input() s d = {} {} d t = [] [] t
n = int(input())
d = {}
for _ in range(n):
    s = input()
    d.setdefault(s,0)
    d[s] -= 1


t = []
for k,v in d.items():
    t.append((v,k))

t.sort()
num = t[0][0]
for v,s in t:
    if v == num:
        print(s)