import string
import sys

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
for i in range(len(ip)):
    ip[i] = int(ip[i].strip("\n"))

#??????3??????????????????
h = [0]*3

#?????????????????????
for i in range(len(ip)):
    for j in range(len(ip)):
        if ip[i] > ip[j]:
            tmp = ip[i]
            ip[i] = ip[j] 
            ip[j] = tmp            

for i in range(3):
    if h != 0:
        print(ip[i]) import string string import sys sys ip = sys.stdin.readlines() ip sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines for i in range(len(ip)):
    ip[i] = int(ip[i].strip("\n"))

#??????3?????????????????? i range(len(ip)) range len(ip) len ip ip[i] = int(ip[i].strip("\n")) ip[i] ip i int(ip[i].strip("\n")) int ip[i].strip("\n") [i].strip [i] ip i strip "\n" h = [0]*3 h [0]*3 [0] 0 3 for i in range(len(ip)):
    for j in range(len(ip)):
        if ip[i] > ip[j]:
            tmp = ip[i]
            ip[i] = ip[j] 
            ip[j] = tmp             i range(len(ip)) range len(ip) len ip for j in range(len(ip)):
        if ip[i] > ip[j]:
            tmp = ip[i]
            ip[i] = ip[j] 
            ip[j] = tmp             j range(len(ip)) range len(ip) len ip if ip[i] > ip[j]:
            tmp = ip[i]
            ip[i] = ip[j] 
            ip[j] = tmp             ip[i] > ip[j] ip[i] ip i ip[j] ip j tmp = ip[i] tmp ip[i] ip i ip[i] = ip[j] ip[i] ip i ip[j] ip j ip[j] = tmp ip[j] ip j tmp for i in range(3):
    if h != 0:
        print(ip[i]) i range(3) range 3 if h != 0:
        print(ip[i]) h != 0 h 0 print(ip[i]) print ip[i] ip i h = [0]*3 [0]*3 h tmp = ip[i] ip[i] tmp ip = sys.stdin.readlines() sys.stdin.readlines() ip
import string
import sys

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
for i in range(len(ip)):
    ip[i] = int(ip[i].strip("\n"))

#??????3??????????????????
h = [0]*3

#?????????????????????
for i in range(len(ip)):
    for j in range(len(ip)):
        if ip[i] > ip[j]:
            tmp = ip[i]
            ip[i] = ip[j] 
            ip[j] = tmp            

for i in range(3):
    if h != 0:
        print(ip[i])