You are given a sequence of integers. Write a program that creates and sorts an array in descending order.
Input
First given number N
— the number of elements in the array (1<=N<=100). Then N
numbers are written separated by a space - elements of the array. The array consists of integers.
Output
It is necessary to output an array sorted in descending order.
Examples
# |
Input |
Output |
1 |
5
4 56 23 67 100
| 100 67 56 23 4 |