Sort evens and odds
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Sequence of integers is given. Sort the given sequence so that first the odd numbers are arranged in ascending order, and then the even numbers are arranged in descending order.
Input
First line contains amount of numbers . Second line contains integer, each no more than by absolute value.
Output
Print in one line a sequence of numbers ordered according to the given condition.
Examples
Input #1
Answer #1
Submissions 6K
Acceptance rate 55%