import sys

a = []
for i in range(10):
    a.append(int(input()))

a.sort()
print(a[9])
print(a[8])
print(a[7]) import sys sys a = [] a [] for i in range(10):
    a.append(int(input())) i range(10) range 10 a.append(int(input())) a.append a append int(input()) int input() input a.sort() a.sort a sort print(a[9]) print a[9] a 9 print(a[8]) print a[8] a 8 print(a[7]) print a[7] a 7 a = [] [] a
import sys

a = []
for i in range(10):
    a.append(int(input()))

a.sort()
print(a[9])
print(a[8])
print(a[7])