#K52442. Reverse Sorted Array

    ID: 29310 Type: Default 1000ms 256MiB

Reverse Sorted Array

Reverse Sorted Array

Given an array of integers, your task is to output a new array with the integers sorted in descending order.

The input is provided via standard input (stdin), and your output should be written to standard output (stdout). You need to handle edge cases such as an empty array or an array with a single element.

For instance, if the input is:

6
34 7 23 32 5 62

Then, the correct output is:

62 34 32 23 7 5

This problem is fundamental for understanding basic array manipulation and sorting in programming contests.

inputFormat

The first line contains an integer $n$ ($0 \le n \le 10^5$) representing the number of elements in the array. The second line contains $n$ integers separated by spaces.

outputFormat

Output the sorted array in descending order. The integers should be printed on a single line, separated by spaces.

## sample
6
34 7 23 32 5 62
62 34 32 23 7 5

</p>