import sys

list = []

for i in range(10):
    list.append(input())

list.sort()
list.reverse()

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

list = []

for i in range(10):
    list.append(input())

list.sort()
list.reverse()

print list[0]
print list[1]
print list[2]