6311: 数组去重

Memory Limit:4 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:26 Solved:11

Description

给定数组a,长度为n,对数组进行从小到大排序,并把其中中重复的数去掉。

Input

第一行一个整数n
第二行n个整数ai

Output

若干个整数,表示排好序并去重的数组

Sample Input Copy

10
20 40 32 67 40 20 89 300 400 15

Sample Output Copy

15 20 32 40 67 89 300 400

HINT

n<=10000
ai<=10^9