e-olymp
Problems

Even neighbours

Even neighbours

The sequence of integers is given. Count the number of elements with even neighbours.

Input

The first line contains the number of sequence elements n (n100). In the second line the sequence elements are given, each of them does not exceed 100 by absolute value.

Output

Print the number of elements with even neighbours.

Time limit 1 second
Memory limit 128 MiB
Input example #1
6
1 2 3 4 5 6
Output example #1
2