Олимпиадный тренинг

Задача 18690. even numbers in even places


Задача

Темы:
A sequence of numbers is entered. Count the number of even numbers in even places.
 
Input
First enter the number N, and then N numbers - members of the sequence.
 
Output
Print the number of even numbers in even places in the sequence.
 
 
Examples
# Input Output
1
5
1 2 4 5 6
1
 
Explanation: the only even number in an even place in the sequence is the number 2. The numbers 4 and 6 are not suitable, because they are in the 3rd and 5th places, respectively.