#C12971. Filter Positive Odd Numbers
Filter Positive Odd Numbers
Filter Positive Odd Numbers
Given a list of integers, your task is to filter out those numbers that are not both positive and odd.
In other words, for an integer \(a\), include it in the output if and only if \(a > 0\) and \(a \bmod 2 = 1\).
If no integers satisfy the condition, print an empty line.
inputFormat
The input is read from standard input and consists of two lines:
- The first line contains an integer \(n\) which represents the number of elements in the list.
- The second line contains \(n\) space-separated integers.
outputFormat
Output the positive odd numbers from the list in the same order they appear, separated by a single space. If there are no such numbers, output an empty line.
## sample4
1 3 5 7
1 3 5 7
</p>