Identical Day
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Kyon realizes he's experiencing identical days over and over again. The only difference between them is the appearance of Suzumiya Haruhi.

When Haruhi appears, Kyon will mark the day with . And if she doesn't, Kyon will mark the day with .

One day, Kyon suddenly has the ability to make Haruhi appear. In other words, he can change to as many times as he likes. And he defines the UNHAPPY of continuous day without Haruhi as .

For example, the total UNHAPPY of equals to .

Now Kyon wants to know the minimum times he must make Haruhi appear so that the total UNHAPPY of days is no more than .

输入描述:

The first line contains two integer .

The second line contains a string . Each character of the string  is either  or  and the length of  is .

输出描述:

Output one integer indicating the answer.
示例1

输入

复制
7 4
1110111

输出

复制
2
示例2

输入

复制
3 1
111

输出

复制
2