
l = []
for i in range(0,10):
    l.append(int(input()))

l.sort(reverse=True)
l=l[:3]
for j in l:
    print(j) l = [] l [] for i in range(0,10):
    l.append(int(input())) i range(0,10) range 0 10 l.append(int(input())) l.append l append int(input()) int input() input l.sort(reverse=True) l.sort l sort reverse=True reverse True l=l[:3] l l[:3] l :3 3 for j in l:
    print(j) j l print(j) print j l = [] [] l l=l[:3] l[:3] l

l = []
for i in range(0,10):
    l.append(int(input()))

l.sort(reverse=True)
l=l[:3]
for j in l:
    print(j)