For a sequence of integers $A = \{a_0, a_1, ..., a_{n-1}\}$ which is sorted by ascending order, eliminate all equivalent elements.
A sequence is given in the following format.
$n$ $a_0 \; a_1 \; ,..., \; a_{n-1}$
Print the sequence after eliminating equivalent elements in a line. Separate adjacency elements by a space character.
4 1 2 2 4
1 2 4