#C1674. Even Squares

    ID: 44905 Type: Default 1000ms 256MiB

Even Squares

Even Squares

Given a list of integers, your task is to compute the square of each integer and output only those squares that are even. The ordering of the output must match the ordering in the input.

For each integer \( x \), compute \( x^2 \). If \( x^2 \) is even, include it in the result.

Example:

Input: 4
       1 2 3 4
Output: 4 16

If there are no even squares, output nothing (or an empty line).

inputFormat

The input is given via standard input (stdin) and has the following format:

  1. The first line contains a single integer \( n \) representing the number of integers.
  2. The second line contains \( n \) space-separated integers.

Note: \( n \) can be 0, in which case the second line may be empty.

outputFormat

Output the even squares computed from the given integers in one line separated by a single space. If there are no even squares, output an empty line.

## sample
4
1 2 3 4
4 16