d=[0 for i in range(101)]



while True:

    try:

        n=eval(input())

        d[n]+=1

    except:

        break



for e in [i for i,e in enumerate(d) if e==max(d)]:

    print(e)
d=[0]*101



while True:

    try:

        n=eval(input())

        d[n]+=1

    except:

        break



tmp=max(d)

for i in range(101):

    if d[i]==tmp: print(i)
d = [0 for i in range(101)]
while True:
    try:
        n = eval(input())
        d[n] += 1
    except:
        break
for e in [i for i, e in enumerate(d) if e == max(d)]:
    print(e)

d = [0] * 101
while True:
    try:
        n = eval(input())
        d[n] += 1
    except:
        break
tmp = max(d)
for i in range(101):
    if d[i] == tmp:
        print(i)

-d = [0 for i in range(101)] +d = [0] * 101 -for e in [i for i, e in enumerate(d) if e == max(d)]: -    print(e) +tmp = max(d) +for i in range(101): +    if d[i] == tmp: +        print(i)