# coding: utf-8
# Here your code !
import sys
line = sys.stdin.readlines()
top = [0,0,0]
for i in range(len(line)):
    line[i] = int(line[i].rstrip("\n"))
    if top[0] < line[i]:
        top[2] = top[1]
        top[1] = top[0]
        top[0] = line[i]
    elif top[1] < line[i]:
        top[2] = top[1]
        top[1] = line[i]
    elif top[2] < line[i]:
        top[2] = line[i]

for i in range(3):
    print(top[i]) import sys sys line = sys.stdin.readlines() line sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines top = [0,0,0] top [0,0,0] 0 0 0 for i in range(len(line)):
    line[i] = int(line[i].rstrip("\n"))
    if top[0] < line[i]:
        top[2] = top[1]
        top[1] = top[0]
        top[0] = line[i]
    elif top[1] < line[i]:
        top[2] = top[1]
        top[1] = line[i]
    elif top[2] < line[i]:
        top[2] = line[i] i range(len(line)) range len(line) len line line[i] = int(line[i].rstrip("\n")) line[i] line i int(line[i].rstrip("\n")) int line[i].rstrip("\n") [i].rstrip [i] line i rstrip "\n" if top[0] < line[i]:
        top[2] = top[1]
        top[1] = top[0]
        top[0] = line[i]
    elif top[1] < line[i]:
        top[2] = top[1]
        top[1] = line[i]
    elif top[2] < line[i]:
        top[2] = line[i] top[0] < line[i] top[0] top 0 line[i] line i top[2] = top[1] top[2] top 2 top[1] top 1 top[1] = top[0] top[1] top 1 top[0] top 0 top[0] = line[i] top[0] top 0 line[i] line i elif top[1] < line[i]:
        top[2] = top[1]
        top[1] = line[i]
     top[1] < line[i] top[1] top 1 line[i] line i top[2] = top[1] top[2] top 2 top[1] top 1 top[1] = line[i] top[1] top 1 line[i] line i elif top[2] < line[i]:
        top[2] = line[i] top[2] < line[i] top[2] top 2 line[i] line i top[2] = line[i] top[2] top 2 line[i] line i for i in range(3):
    print(top[i]) i range(3) range 3 print(top[i]) print top[i] top i line = sys.stdin.readlines() sys.stdin.readlines() line top = [0,0,0] [0,0,0] top
# coding: utf-8
# Here your code !
import sys
line = sys.stdin.readlines()
top = [0,0,0]
for i in range(len(line)):
    line[i] = int(line[i].rstrip("\n"))
    if top[0] < line[i]:
        top[2] = top[1]
        top[1] = top[0]
        top[0] = line[i]
    elif top[1] < line[i]:
        top[2] = top[1]
        top[1] = line[i]
    elif top[2] < line[i]:
        top[2] = line[i]

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