題目來源:judgegirl from ntu prof. pangfeng Liu
Task Description
Write a program to read a positive integer and a sequence of positive integers, then print the sequence in lines. The first line is for odd numbers, and the second line is for even numbers.
Limits
is no more than .
Input Format
There are two lines in the input. The first line has the integer . The second line has the positive integers.
Output Format
There are two lines in the output, according to the description.
Sample Input
5
3 6 7 9 20
Sample Output
3 7 9
6 20
特別注意
- 若在行尾輸出 多餘的空白字元,你將會得到 Wrong Answer