#K50922. Squares of Even Numbers

    ID: 28972 Type: Default 1000ms 256MiB

Squares of Even Numbers

Squares of Even Numbers

Given a list of integers, your task is to compute and output the square of each even number contained in the list. If there are no even numbers, output an empty line.

The program should first read an integer N denoting the number of elements in the list. The next line contains N space-separated integers.

Your output should consist of the squares of the even numbers in the same order as they appear, printed as space-separated integers.

Mathematically, for each even number \(x\) in the list, output \(x^2\) where \(x^2 = x \times x\).

inputFormat

The first line of input contains an integer \(N\) (the number of elements in the list). The second line contains \(N\) space-separated integers.

outputFormat

The output should be the squares of the even numbers from the input list, printed as space-separated integers in one line. If there are no even numbers, output an empty line.

## sample
4
2 4 6 8
4 16 36 64