import sys

a = []
for i in range(10):
    a.append(int(input()))
#num = [1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922]
a.sort(reverse = True)
print(a[0])
print(a[1])
print(a[2]) import sys sys a = [] a [] for i in range(10):
    a.append(int(input()))
#num = [1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922] i range(10) range 10 a.append(int(input())) a.append a append int(input()) int input() input a.sort(reverse = True) a.sort a sort reverse = True reverse True print(a[0]) print a[0] a 0 print(a[1]) print a[1] a 1 print(a[2]) print a[2] a 2 a = [] [] a
import sys

a = []
for i in range(10):
    a.append(int(input()))
#num = [1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922]
a.sort(reverse = True)
print(a[0])
print(a[1])
print(a[2])