#ENGLISHP40. Distinct
Distinct
Description
Select some of N values. The selected values are all different and the number of the selected values is maximum.
Input Format
First line: one positive integers N (N <= 100).
Second line: N positive integers (<= 10000).
Output Format
One line contains several selected values.
7
2 2 5 1 2 1 7
2 5 1 7