hill = []
while True:
    try:
        hill.append(int(input()))
    except:
        break
for i in range(1, len(hill)):
    key = hill[i]
    j = i-1
    while j >= 0 and hill[j] < key:
        hill[j+1] = hill[j]
        j -= 1
    hill[j+1] = key

for i in range(3):
    print(hill[i]) hill = [] hill [] while True:
    try:
        hill.append(int(input()))
    except:
        break True try:
        hill.append(int(input()))
    except:
        break except:
        break break hill.append(int(input())) hill.append hill append int(input()) int input() input for i in range(1, len(hill)):
    key = hill[i]
    j = i-1
    while j >= 0 and hill[j] < key:
        hill[j+1] = hill[j]
        j -= 1
    hill[j+1] = key i range(1, len(hill)) range 1 len(hill) len hill key = hill[i] key hill[i] hill i j = i-1 j i-1 i 1 while j >= 0 and hill[j] < key:
        hill[j+1] = hill[j]
        j -= 1
     j >= 0 and hill[j] < key j >= 0 j 0 hill[j] < key hill[j] hill j key hill[j+1] = hill[j] hill[j+1] hill j+1 j 1 hill[j] hill j j -= 1 j 1 hill[j+1] = key hill[j+1] hill j+1 j 1 key for i in range(3):
    print(hill[i]) i range(3) range 3 print(hill[i]) print hill[i] hill i key = hill[i] hill[i] key hill = [] [] hill j -= 1 1 j j = i-1 i-1 j
hill = []
while True:
    try:
        hill.append(int(input()))
    except:
        break
for i in range(1, len(hill)):
    key = hill[i]
    j = i-1
    while j >= 0 and hill[j] < key:
        hill[j+1] = hill[j]
        j -= 1
    hill[j+1] = key

for i in range(3):
    print(hill[i])