a=[]
for i in range(5):
a.append(int(input()))
a.sort(reverse=True)
print(' '.join(map(str,a[:3])))
# -*- coding:utf-8 -*-
userInput = []
while len(userInput) < 5:
n = int(input('请输入 -100 到 100 之间的正整数: '))
if -100 <= n <= 100:
userInput.append(n)
else:
continue
# print(userInput)
userInput.sort(reverse=True)
print('最大的前三个数字是: ',' '.join( map( str,userInput[:3] ) ))
b=[]
for i in range(5):
a=input("输入第{0}个数字:".format(i+1))
b.append(a)
b.sort()
b.reverse()
print(b[:3])