Competitions

# Week 5: December 7 - 13. Integer arrays. Part 2

# 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** (**n** ≤ **100**). 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.

Input example #1

6 1 2 3 4 5 6

Output example #1

2