#D8521. Unique

    ID: 7080 Type: Default 1000ms 268MiB

Unique

Unique

For a sequence of integers A=a0,a1,...,an1A = \\{a_0, a_1, ..., a_{n-1}\\} which is sorted by ascending order, eliminate all equivalent elements.

Constraints

  • 1n100,0001 \leq n \leq 100,000
  • 1000,000,000ai1,000,000,000-1000,000,000 \leq a_i \leq 1,000,000,000
  • a0a1...an1a_0 \leq a_1 \leq ... \leq a_{n-1}

Input

A sequence is given in the following format.

nn a0  a1  ,...,  an1a_0 \; a_1 \; ,..., \; a_{n-1}

Output

Print the sequence after eliminating equivalent elements in a line. Separate adjacency elements by a space character.

Example

Input

4 1 2 2 4

Output

1 2 4

inputFormat

Input

A sequence is given in the following format.

nn a0  a1  ,...,  an1a_0 \; a_1 \; ,..., \; a_{n-1}

outputFormat

Output

Print the sequence after eliminating equivalent elements in a line. Separate adjacency elements by a space character.

Example

Input

4 1 2 2 4

Output

1 2 4

样例

4
1 2 2 4
1 2 4