d={}

try:

    while True:

        n=int(eval(input()))

        if n in d:

            d[n]+=1

        else:

            d[n]=1

except EOFError:

    pass

a=[]

m=max(d.values())

for key, value in list(d.items()):

    if value == m:

        a.append(key)

a.sort()

for i in a:

    print(i)
d={}

try:

    while True:

        n=int(input())

        if n in d:

            d[n]+=1

        else:

            d[n]=1

except EOFError:

    pass

a=[]

m=max(d.values())

for key, value in list(d.items()):

    if value == m:

        a.append(key)

a.sort()

for i in a:

    print(i)
d = {}
try:
    while True:
        n = int(eval(input()))
        if n in d:
            d[n] += 1
        else:
            d[n] = 1
except EOFError:
    pass
a = []
m = max(d.values())
for key, value in list(d.items()):
    if value == m:
        a.append(key)
a.sort()
for i in a:
    print(i)

d = {}
try:
    while True:
        n = int(input())
        if n in d:
            d[n] += 1
        else:
            d[n] = 1
except EOFError:
    pass
a = []
m = max(d.values())
for key, value in list(d.items()):
    if value == m:
        a.append(key)
a.sort()
for i in a:
    print(i)

-        n = int(eval(input())) +        n = int(input())