A train has compartments in a row. Each compartment is quiet (0) or noisy (1).
You may soundproof at most noisy compartments, turning them into quiet compartments. You cannot move or remove compartments.
What is the greatest possible number of consecutive quiet compartments after soundproofing? If no compartment can be quiet, the answer is zero.
The first line contains and .
The second line contains a binary string of length describing the compartments.
Print the maximum length of a consecutive quiet section.
In Sample 1, soundproof compartments and . Compartments through then form a quiet section of length .
In Sample 2, no soundproofing is allowed; only compartment is quiet.
| Sample Input 1 | Sample Output 1 |
|---|---|
9 2 101101001 |
5 |
| Sample Input 2 | Sample Output 2 |
|---|---|
5 0 11011 |
1 |