Problem2191--从大到小排序

2191: 从大到小排序

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 118  Solved: 88
[Status] [Submit] [Creator:]

Description

输入 n 个整数,将这 n 个整数从大到小排序后输出。

Input

第一行,一个整数 n(1 ≤ n ≤ 1000)。

第二行,n 个整数,两两之间以一个空格分隔。每个整数均为不超过 1000 的正整数。

Output

输出共一行,包含 n 个整数,两两之间以一个空格分隔。要求按照从大到小的顺序输出这些整数。

Sample Input Copy

5
1 5 3 4 2

Sample Output Copy

5 4 3 2 1

Source/Category

 python