3381: 有序去重

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:4 Solved:2

Description

有一个数列,里面有n个数字,其中有不少重复的部分, 现在希望去掉重复的,然后在排序。

Input

共两行
第一行为一个正整数n$(1 \leq n \leq 1000)$
第二行为n个数字,中间用空格隔开

Output

去掉重复后,从大到小输出这个数列,要求中间用空格隔开

Sample Input Copy

10
2 3 1 2 2 3 4 5 2 1

Sample Output Copy

5 4 3 2 1