#K85612. Filtering and Sorting Positive Integers

    ID: 36681 Type: Default 1000ms 256MiB

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.

## sample
7
3 -1 -4 1 5 9 -6
9 5 3 1

</p>