An array of integers is given. Find how many its elements are bigger than their two neighbours, and output the number of such elements. The leftmost (first) and rightmost (last) elements are not taken into account, because they have one neighbour only.
First line contains number . Next line contains integers. All numbers do not exceed by absolute value.
Print the number of elements that are larger than their two neighbours.
Example 1