Beautiful Array
Array is beautiful if all () are distinct.
For example, and are beautiful, while and are not.
A sequence of integers is called a permutation of the sequence if the number of each unique number in these arrays is the same. For example, is a permutation of , and is a permutation of . However, is not a permutation of (it doesn't contain , which should appear in the sequence and has , which should not appear).
Sakurako received an array. She wants to find an example of a permutation of the given array which is beautiful.
Input
The first line contains one integer () — the length of the array.
The second line contains integers () — elements of the array.
It is guaranteed that all numbers in the array are distinct. It is also guaranteed that an answer exists.
Output
Output a beautiful array (which is a permutation of the original array) in one line. If there are multiple solutions, output any.
Examples
Note
In the first example, array is beautiful since if we take for all , it will be:
;
;
;
.
As we see, all numbers are distinct.
In the second example, array is beautiful since if we take for all , it will be:
;
.
As we see, all numbers are distinct.
Scoring
You will receive at least points if your solution works correctly for .
You will receive at least points if your solution works correctly for .