9258: ABC294 —— A - Filter
[Creator : ]
Description
### Problem Statement
You are given a sequence of $N$ integers: $A=(A _ 1,A _ 2,\ldots,A _ N)$.
Print all even numbers in $A$ without changing the order.
You are given a sequence of $N$ integers: $A=(A _ 1,A _ 2,\ldots,A _ N)$.
Print all even numbers in $A$ without changing the order.
Input
### Input
The input is given from Standard Input in the following format:
```
$N$
$A _ 1$ $A _ 2$ $\ldots$ $A _ N$
```
The input is given from Standard Input in the following format:
```
$N$
$A _ 1$ $A _ 2$ $\ldots$ $A _ N$
```
Output
### Output
Print a line containing the sequence of all even numbers in $A$, with spaces in between.
Print a line containing the sequence of all even numbers in $A$, with spaces in between.
Constraints
### Constraints
- $1\leq N\leq 100$
- $1\leq A _ i\leq 100\ (1\leq i\leq N)$
- $A$ contains at least one even number.
- All values in the input are integers.
- $1\leq N\leq 100$
- $1\leq A _ i\leq 100\ (1\leq i\leq N)$
- $A$ contains at least one even number.
- All values in the input are integers.
Sample 1 Input
5
1 2 3 5 6
Sample 1 Output
2 6
We have A=(1,2,3,5,6). Among them are two even numbers, $A_2=2$ and $A_5=6$, so print 2 and 6 in this order, with a space in between.
Sample 2 Input
5
2 2 2 3 3
Sample 2 Output
2 2 2
Sample 3 Input
10
22 3 17 8 30 15 12 14 11 17
Sample 3 Output
22 8 30 12 14