LogiQuest

52. Count Even and Odd

EasyArray

Print how many elements are even and how many are odd.

Input format

Line 1: n Line 2: n integers

Output format

even odd

Example 1

Input

5
1 2 3 4 5

Output

2 3

Example 2

Input

3
-2 0 7

Output

2 1

Constraints

1 ≤ n ≤ 10⁵

Read input from standard input and print the answer to standard output. Your code is judged against 6 test cases, most of them hidden.

Loading the MyLoginn IDE…