import sys
a = list(map(int,sys.stdin.readlines()))
for i in range(10):
    for j in range(i+1,10):
        if a[i] < a[j]:
            a[i],a[j] = a[j],a[i]
            
for i in range(3):
    print(a[i]) import sys sys a = list(map(int,sys.stdin.readlines())) a list(map(int,sys.stdin.readlines())) list map(int,sys.stdin.readlines()) map int sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines for i in range(10):
    for j in range(i+1,10):
        if a[i] < a[j]:
            a[i],a[j] = a[j],a[i]
             i range(10) range 10 for j in range(i+1,10):
        if a[i] < a[j]:
            a[i],a[j] = a[j],a[i]
             j range(i+1,10) range i+1 i 1 10 if a[i] < a[j]:
            a[i],a[j] = a[j],a[i]
             a[i] < a[j] a[i] a i a[j] a j a[i],a[j] = a[j],a[i] a[i] a i a[j] a j a[j] a j a[i] a i for i in range(3):
    print(a[i]) i range(3) range 3 print(a[i]) print a[i] a i a = list(map(int,sys.stdin.readlines())) list(map(int,sys.stdin.readlines())) a
import sys
a = list(map(int,sys.stdin.readlines()))
for i in range(10):
    for j in range(i+1,10):
        if a[i] < a[j]:
            a[i],a[j] = a[j],a[i]
            
for i in range(3):
    print(a[i])