此题n干扰项
while True:
try:
n=input()
scores=[]
score=input().split(" ")
scores=list(map(int,score))
scores.sort()
score_grade=scores[::-1]
for i in range(5):
print(score_grade[i],end=" ")
print()
except:
break