#C14506. Even Squares Filter
Even Squares Filter
Even Squares Filter
You are given a list of integers. Your task is to compute the square of each integer and filter out those squares that are odd. In other words, only include a squared value if it is even. The resulting list should be printed in a Python list format (for example: [4, 16]).
Note: Read the input from standard input and write the output to standard output. Ensure that your program follows the input/output requirements exactly.
Mathematically, for each integer \(x\), compute \(x^2\). Include \(x^2\) in the output list if \(x^2 \mod 2 = 0\).
inputFormat
The first line of input contains a single integer \(n\) representing the number of elements in the list. The second line contains \(n\) space-separated integers.
outputFormat
Output a single line containing the list of even squares in the format: [a, b, c]. If no element qualifies, output an empty list: [].
## sample5
1 2 3 4 5
[4, 16]