1696: 11.不重复地输出数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:10 Solved:6

Description

输入n个数,从小到大将它们输出,重复的数只输出一次。保证不同的数不超过500个。

Input

第一行是一个整数n。1 ≤ n ≤ 100000。

之后n行,每行一个整数。整数大小在int范围内。

Output

一行,从小到大不重复地输出这些数,相邻两个数之间用单个空格隔开。

Sample Input Copy

5
2 4 4 5 1

Sample Output Copy

1 2 4 5

Source/Category