Sorting#1656

Sorting

1 second
128 megabytes
Easy

Given a sequence of -bit signed integers, sort the sequence and remove all duplicate elements, i.e., keep only one occurrence of each number in the sequence.

Input

The first line contains the number of elements (1 \leq n \leq 65536) in the sequence. The next lines each contain one integer.

Output

Output no more than numbers: sort them in descending order if is even, and in ascending order if is odd. Each number should appear at most once.

Examples

Example 1

Loading
Loading