mt = list()
n = 10

for i in range(n):
    mt.append(int(input()))
mt.sort(reverse=True)
for j in range(3):
    print(mt[j]) mt = list() mt list() list n = 10 n 10 for i in range(n):
    mt.append(int(input())) i range(n) range n mt.append(int(input())) mt.append mt append int(input()) int input() input mt.sort(reverse=True) mt.sort mt sort reverse=True reverse True for j in range(3):
    print(mt[j]) j range(3) range 3 print(mt[j]) print mt[j] mt j mt = list() list() mt n = 10 10 n
mt = list()
n = 10

for i in range(n):
    mt.append(int(input()))
mt.sort(reverse=True)
for j in range(3):
    print(mt[j])