Problem2163--年龄排序去重

2163: 年龄排序去重

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Submit

Description

小明所在的学校近期统计了师生的年龄数据,教务处主任希望你帮忙把这些年龄按照从小到大的顺序排序,重复的年龄只保留一个。
试着编写程序解决这个问题。

Input

输入共两行,第1行是n。
第二行是n个整数。

Output

1行。所有整数去重后从低到高排序后的结果。

Sample Input Copy

6
6 8 8 7 7 6

Sample Output Copy

6 7 8

Source/Category