Given a sequence of
integer numbers
,
count how many
’s,
with
,
follow the property
Input
The input consists of several cases. Each case begins with
,
followed by the
integer numbers
.
Assume
.
Output
For each case, print the number of indices
that fulfill the condition above.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.