N=int(input())
votes = dict()
for _ in range(N):
    S = input()
    if votes.get(S):
        votes[S] += 1
    else:
        votes[S] = 1
max = 0
for k in votes:
    if votes[k] > max:
        max = votes[k]
keys = []
for k in votes:
    if votes[k] == max:
        keys.append(k)
keys.sort()
for k in keys:
    print(k) N=int(input()) N int(input()) int input() input votes = dict() votes dict() dict for _ in range(N):
    S = input()
    if votes.get(S):
        votes[S] += 1
    else:
        votes[S] = 1 _ range(N) range N S = input() S input() input if votes.get(S):
        votes[S] += 1
    else:
        votes[S] = 1 votes.get(S) votes.get votes get S votes[S] += 1 votes[S] votes S 1 votes[S] = 1 votes[S] votes S 1 max = 0 max 0 for k in votes:
    if votes[k] > max:
        max = votes[k] k votes if votes[k] > max:
        max = votes[k] votes[k] > max votes[k] votes k max max = votes[k] max votes[k] votes k keys = [] keys [] for k in votes:
    if votes[k] == max:
        keys.append(k) k votes if votes[k] == max:
        keys.append(k) votes[k] == max votes[k] votes k max keys.append(k) keys.append keys append k keys.sort() keys.sort keys sort for k in keys:
    print(k) k keys print(k) print k max = 0 0 max keys = [] [] keys N=int(input()) int(input()) N S = input() input() S max = votes[k] votes[k] max votes = dict() dict() votes
N=int(input())
votes = dict()
for _ in range(N):
    S = input()
    if votes.get(S):
        votes[S] += 1
    else:
        votes[S] = 1
max = 0
for k in votes:
    if votes[k] > max:
        max = votes[k]
keys = []
for k in votes:
    if votes[k] == max:
        keys.append(k)
keys.sort()
for k in keys:
    print(k)
