Limits
1s, 512 MB
Given a list of numbers, print only the even numbers.
Input
The input will contain at most 100 positive integers. All integers have at most 11 digits.
Output
Print the even numbers only in the same order as in the input.
Sample
Input | Output |
---|
1
2
3
4
5
6
7
| 2
4
6
|

Factors
| CPU | Memory | Source |
---|
Grep 3.7 | 1× | 1× | 1× |