a=[]
while 1:
    try:
        a.append(int(input()))
    except: break
a.sort(reverse=1)
for i in range(3):print(a[i]) a=[] a [] while 1:
    try:
        a.append(int(input()))
    except: break 1 try:
        a.append(int(input()))
    except: break except: b a.append(int(input())) a.append a append int(input()) int input() input a.sort(reverse=1) a.sort a sort reverse=1 reverse 1 for i in range(3):print(a[i]) i range(3) range 3 a=[] [] a
a=[]
while 1:
    try:
        a.append(int(input()))
    except: break
a.sort(reverse=1)
for i in range(3):print(a[i])