1002: 有序集合

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:153 Solved:55

Description

对于长度为n的序列$a_1,a_2,...a_n$,序列中有重复元素。请将重复的多余元素去除后从小到大排序。

Input

共两行。
第一行,一个整数n。
第二行,n个以空格隔开的整数。

Output

输出去重后排好序的序列,每个元素以空格隔开。

Sample Input Copy

5
1 3 1 3 4

Sample Output Copy

1 3 4

HINT

$0<n<=1000$,$0<a_i<=100(1<=i<=n)$

Source/Category