Problem4279--数的分类

4279: 数的分类

Time Limit: 1.000 Sec  Memory Limit: 128 MB
Submit: 113  Solved: 56
[Submit] [Status] [Web Board] [Creator:]

Description

从键盘接收N个正整数,将其中的奇数与偶数分别显示出来。

Input

有两行,第一行输入一个数N第二行N个正整数,各数之间有空格

Output

第一行偶数
第二行奇数

Sample Input

5
12 8 19 5 4 

Sample Output

12 8 4
19 5 

Source/Category


[Submit] [Status]