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

print a[0]
print a[1]
print a[2] a = [] a [] for i in range(10):
    a.append(input()) i range(10) range 10 a.append(input()) a.append a append input() input a.sort() a.sort a sort a.reverse() a.reverse a reverse print a[0] a 0 print a[1] a 1 print a[2] a 2 a = [] [] a
a = []
for i in range(10):
    a.append(input())
a.sort()
a.reverse()

print a[0]
print a[1]
print a[2]