Dynamic Array - 3#195

Dynamic Array - 3

1 second
128 megabytes
Very easy (≈850)

A list of integers is given. Output the number of even elements in this list and then those even elements in reverse order of their appearance. Use the vector structure.

Input

The first line contains the integer (1 ≤ n ≤ 100). The second line contains integers, each with an absolute value not exceeding .

Output

Print the number of even elements in the list on the first line. On the second line, print the even elements in reverse order, separated by spaces. If there are no even elements in the list, output NO.

Examples

Example 1

Loading
Loading