#K85612. Filtering and Sorting Positive Integers
Filtering and Sorting Positive Integers
Filtering and Sorting Positive Integers
Given a list of integers, write a program to filter out only the positive integers and output them in descending order. If there are no positive integers, output an empty line.
The input is provided via standard input, and the output should be printed to standard output.
Note: All formulas (if any) should be written in LaTeX format.
inputFormat
The first line of input contains an integer \(n\), representing the number of integers in the list. The second line contains \(n\) space-separated integers.
outputFormat
Output the positive integers in descending order as space-separated integers on a single line. If there are no positive integers, output an empty line.
## sample7
3 -1 -4 1 5 9 -6
9 5 3 1
</p>