#C14280. Square Even Numbers Excluding Multiples of 4

    ID: 43912 Type: Default 1000ms 256MiB

Square Even Numbers Excluding Multiples of 4

Square Even Numbers Excluding Multiples of 4

Given a list of integers, your task is to compute the square of each even number that is not divisible by 4. In other words, for each integer x in the list, if x is even and x \mod 4 \neq 0, output x^2 (represented in LaTeX as \(x^2\)).

The input is read from standard input (stdin) and the output should be written to standard output (stdout) as a single line. If no number qualifies, output an empty line.

inputFormat

The first line contains an integer n, representing the number of integers in the list. The second line contains n space-separated integers.

outputFormat

A single line of space-separated integers representing the squares of even numbers that are not divisible by 4. Output an empty line if no number qualifies.

## sample
8
1 2 3 4 5 6 8 10
4 36 100