Medium
Split Even and Odd
Read a list of integers and print the even numbers on the first line and the odd numbers on the second, keeping their order. Print an empty line if there are none.
Input
One line of integers.
Output
Two lines.
Sample 1
Input
1 2 3 4 5 6
Output
2 4 6 1 3 5
Sample 2
Input
2 4
Output
2 4
Output appears here