The lottery office wants to know how many winning tickets have even numbers and how many have odd numbers.
Given n ticket numbers, count both.
Input Format
The first line has n.
The second line has n integers.
Output Format
Print the count of even numbers and the count of odd numbers, separated by a space.
Constraints
• 1 ≤ n ≤ 1000
• -10^6 ≤ value ≤ 10^6
Examples
Example 1
Input
6
1 2 3 4 5 6
Output
3 3
Explanation Even: 2, 4, 6. Odd: 1, 3, 5.
Example 2
Input
4
-3 -2 0 7
Output
2 2
Explanation Even: -2, 0. Odd: -3, 7. Zero is even!
Example 3
Input
3
11 13 15
Output
0 3
Explanation All odd.
Acceptance
—
Accepted
0
Submissions
0