Given a binary string of length
Constraints
In tests worth
In tests worth an additional
Input Specification
The first line of the input contains two space-separated integers,
Each of the next
Output Specification
Output a single integer, the number of substrings that contain at least three ones.
Sample Input
Copy
5 4
1
2
4
5
Sample Output
Copy
3
Comments