#abc294a. [abc294_a]Filter
[abc294_a]Filter
Problem Statement
You are given a sequence of integers: .
Print all even numbers in without changing the order.
Constraints
- contains at least one even number.
- All values in the input are integers.
Input
The input is given from Standard Input in the following format:
Output
Print a line containing the sequence of all even numbers in , with spaces in between.
Sample Input 1
5
1 2 3 5 6
Sample Output 1
2 6
We have . Among them are two even numbers, and , so print and in this order, with a space in between.
Sample Input 2
5
2 2 2 3 3
Sample Output 2
2 2 2
may contain equal elements.
Sample Input 3
10
22 3 17 8 30 15 12 14 11 17
Sample Output 3
22 8 30 12 14