Even neighbours
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The sequence of integers is given. Count the number of elements with two even neighbours.
Input
The first line contains the number of elements in the sequence. The second line contains elements, each of them does not exceed by absolute value.
Output
Print the number of elements with two even neighbours.
Examples
Input #1
Answer #1
Submissions 4K
Acceptance rate 43%