n = 0
list = []
while n < 10:
    x = int(input())
    list.append(x)
    n += 1

list.sort()
print(list[9])
print(list[8])
print(list[7]) n = 0 n 0 list = [] list [] while n < 10:
    x = int(input())
    list.append(x)
    n += 1 n < 10 n 10 x = int(input()) x int(input()) int input() input list.append(x) list.append list append x n += 1 n 1 list.sort() list.sort list sort print(list[9]) print list[9] list 9 print(list[8]) print list[8] list 8 print(list[7]) print list[7] list 7 list = [] [] list n = 0 0 n n += 1 1 n x = int(input()) int(input()) x
n = 0
list = []
while n < 10:
    x = int(input())
    list.append(x)
    n += 1

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