#C13045. Square of Positive Odd Integers

    ID: 42540 Type: Default 1000ms 256MiB

Square of Positive Odd Integers

Square of Positive Odd Integers

You are given an array of integers. Your task is to filter out the positive odd integers from the array and output their squares. In other words, for each integer \( x \) in the array, if \( x > 0 \) and \( x \) is odd, then compute \( x^2 \) and include it in the output.

Note: The square of an integer \( x \) is defined as \( x^2 \). For example, if \( x = 3 \), then \( 3^2 = 9 \).

The resulting squared numbers should be printed in the same order as their corresponding integers appear in the input. If no integer satisfies the condition, output an empty line.

inputFormat

The input is read from standard input (stdin) and has the following format:

  1. The first line contains an integer \( n \), representing the number of elements in the array.
  2. The second line contains \( n \) space-separated integers.

If \( n = 0 \), the second line may be absent.

outputFormat

Print the squared values of the positive and odd integers in a single line, separated by a space. If there are no such integers, output an empty line.

## sample
6
1 -2 3 4 5 -6
1 9 25