Problem G: 一维-统计奇数和偶数个数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:9 Solved:5

Description

输入n个整数,统计其中奇数和偶数的个数。

Input

第一行输入整数n(1≤n≤100) 第二行输入n个整数,用空格分隔

Output

输出两个整数,分别表示奇数个数和偶数个数,中间用空格分隔

Sample Input Copy

6
1 2 3 4 5 6

Sample Output Copy

3 3

HINT

1≤n≤100