Buggy python submission (verdict: Runtime Error):
from collections import Counter
import numpy as np
import pandas as pd
N = int(input())
list = [input() for _ in range(0,N)]
counted = Counter(list)
res_max= counted.most_common()[0][1]

ans = []
for k, v in counted.items():
    if k == v:
        ans.append(k)

ans.sort()
print(*ans, sep="\n")
    


Fixed submission:
from collections import Counter


N = int(input())
list = [input() for _ in range(0,N)]
counted = Counter(list)
res_max= counted.most_common()[0][1]
ans = []
for k, v in counted.items():
    if v == res_max:
        ans.append(k)

ans.sort()
print(*ans, sep="\n")

Buggy python submission (verdict: Runtime Error):
from collections import Counter
import numpy as np
import pandas as pd
N = int(input())
list = [input() for _ in range(0,N)]
counted = Counter(list)
res= counted.most_common()

res = pd.DataFrame(res)
[print(i) for i in res[0][res[1] == res[1].max()]]


Fixed submission:
from collections import Counter


N = int(input())
list = [input() for _ in range(0,N)]
counted = Counter(list)
res_max= counted.most_common()[0][1]
ans = []
for k, v in counted.items():
    if v == res_max:
        ans.append(k)

ans.sort()
print(*ans, sep="\n")

Buggy python submission (verdict: Runtime Error):
from collections import Counter
import numpy as np
import pandas as pd
N = int(input())
list = [input() for _ in range(0,N)]
counted = Counter(list)
res= counted.most_common()

res = pd.DataFrame(res)
[print(i) for i in res[0][res[1] == res[1].max()]]


Fixed submission:
from collections import Counter


N = int(input())
list = [input() for _ in range(0,N)]
counted = Counter(list)
res_max= counted.most_common()[0][1]
ans = []
for k, v in counted.items():
    if v == res_max:
        ans.append(k)

ans.sort()
print(*ans, sep="\n")

Buggy python submission (verdict: Time Limit Exceeded):
from collections import Counter
N = int(input())
list = [input() for _ in range(0,N)]
counted = Counter(list)
res=[]
for letter,count in counted.most_common() :
    if count < counted.most_common()[0][1]:
        break
    else:
        res.append(letter)

[print(i) for i in sorted(res)]

Fixed submission:
from collections import Counter


N = int(input())
list = [input() for _ in range(0,N)]
counted = Counter(list)
res_max= counted.most_common()[0][1]
ans = []
for k, v in counted.items():
    if v == res_max:
        ans.append(k)

ans.sort()
print(*ans, sep="\n")

Buggy python submission (verdict: Time Limit Exceeded):
from collections import Counter
N = int(input())
list = [input() for _ in range(0,N)]
counted = Counter(list)
res = [letter for letter,count in counted.most_common() if count == counted.most_common()[0][1]]
[print(i) for i in sorted(res)]

Fixed submission:
from collections import Counter


N = int(input())
list = [input() for _ in range(0,N)]
counted = Counter(list)
res_max= counted.most_common()[0][1]
ans = []
for k, v in counted.items():
    if v == res_max:
        ans.append(k)

ans.sort()
print(*ans, sep="\n")

Buggy python submission (verdict: Time Limit Exceeded):
from collections import Counter
N = int(input())
list = []
for i in range(0,N):
    list.append(input())
counted = Counter(list)
res = [letter for letter,count in counted.most_common() if count == counted.most_common()[0][1]]
[print(i) for i in sorted(res)]

Fixed submission:
from collections import Counter


N = int(input())
list = [input() for _ in range(0,N)]
counted = Counter(list)
res_max= counted.most_common()[0][1]
ans = []
for k, v in counted.items():
    if v == res_max:
        ans.append(k)

ans.sort()
print(*ans, sep="\n")