Given array of integers. Move all maximum elements to the end of the array without changing the order of others.
First line contains positive integer . Next line contains integers. All numbers do not exceed by absolute value.
Print the elements of updated array.
Example 1