Sort positive and negative#11296

Sort positive and negative

1 second
128 megabytes
Very easy

Sequence of integers is given. Sort the given sequence so that first the positive numbers are arranged in descending order, and then the negative numbers are arranged in ascending order. Zeroes should be placed at the end of the sequence.

Input

First line contains amount of numbers (1 \le n \le 1000). Second line contains integers, each no more than 2 \cdot 10^9 by absolute value.

Output

Print in one line a sequence of numbers ordered according to the given condition.

Examples

Example 1

Loading
Loading