#T88. 不重复地输出数

不重复地输出数

Description

Input n numbers, output them in ascending order, and only output duplicate numbers once. It is guaranteed that there are no more than 500 distinct numbers.

Input Format

The first line is an integer n. 1 ≤ n ≤ 100000.
Each of the next n lines contains an integer. The integer size is within the range of int.

Output Format

Output these numbers in ascending order without duplicates in a single line, with adjacent numbers separated by a single space.

5
2 4 4 5 1

1 2 4 5