from collections import Counter
n = int(input())
s = [input() for _ in range(n)]
c = Counter(s)
m = max(c.values())
ans_list = [i for i in c.keys() if c[i]==m]
[print(ans) for ans in sorted(ans_list)] from collections import Counter 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)] c = Counter(s) c Counter(s) Counter s m = max(c.values()) m max(c.values()) max c.values() c.values c values i for i in c.keys() if c[i]==m for i in c.keys() if c[i]==m i c.keys() c.keys c keys c[i]==m c[i] c i m if c[i]==m i ans_list = [i for i in c.keys() if c[i]==m] ans_list [i for i in c.keys() if c[i]==m] print(ans) for ans in sorted(ans_list) for ans in sorted(ans_list) ans sorted(ans_list) sorted ans_list for ans in sorted(ans_list) print(ans) print ans [print(ans) for ans in sorted(ans_list)] m = max(c.values()) max(c.values()) m ans_list = [i for i in c.keys() if c[i]==m] [i for i in c.keys() if c[i]==m] ans_list n = int(input()) int(input()) n c = Counter(s) Counter(s) c s = [input() for _ in range(n)] [input() for _ in range(n)] s
from collections import Counter
n = int(input())
s = [input() for _ in range(n)]
c = Counter(s)
m = max(c.values())
ans_list = [i for i in c.keys() if c[i]==m]
[print(ans) for ans in sorted(ans_list)]