#aising2020b. [aising2020_b]An Odd Problem
[aising2020_b]An Odd Problem
Problem Statement
We have squares assigned the numbers . Each square has an integer written on it, and the integer written on Square is .
How many squares satisfy both of the following conditions?
- The assigned number, , is odd.
- The written integer is odd.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of squares that satisfy both of the conditions.
Sample Input 1
5
1 3 4 5 7
Sample Output 1
2
- Two squares, Square and , satisfy both of the conditions.
- For Square and , the assigned numbers are not odd.
- For Square , the written integer is not odd.
Sample Input 2
15
13 76 46 15 50 98 93 77 31 43 84 90 6 24 14
Sample Output 2
3