Write a program which, given a list of integers with at least two elements, says how many elements in even positions are equal to the second integer in the sequence. The first integer in the sequence is considered to be in position 1, the second integer in position 2, etc.
Note that the second element of the sequence must be included in the count.
Exam score: 3.5 Automatic part: 50%
Input
The input consists of a sequence of at least two integers.
Output
You have to write how many elements satisfy the condition described in the problem statement.
Input
4 5
Output
1
Input
41 50 25 50
Output
2
Input
4 13 13
Output
1
Input
31 7 14 14 7
Output
1