a=[]
for i in range(10):
    a.append(input())
a.sort()
a=a[::-1]
a=a[:3]
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=a[::-1] a a[::-1] a ::-1 -1 a=a[:3] a a[:3] a :3 3 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[::-1] a[::-1] a a=a[:3] a[:3] a a=[] [] a
a=[]
for i in range(10):
    a.append(input())
a.sort()
a=a[::-1]
a=a[:3]
print(a[0])
print(a[1])
print(a[2])