#K64852. Filter Even Numbers
Filter Even Numbers
Filter Even Numbers
You are given a list of integers separated by spaces. Your task is to filter out the even numbers from this list and output them in the same order.
An integer \(num\) is even if it satisfies the condition \(num \bmod 2 = 0\). If there are no even numbers in the input, output an empty line.
Example:
Input: 1 2 3 4 5 6
Output: 2 4 6
inputFormat
The input consists of a single line containing space-separated integers. There is no extra information.
outputFormat
Output the even numbers from the input in the same order, separated by a single space. If no even numbers exist, output an empty line.
## sample1 2 3 4 5 6
2 4 6