J. Win
time limit per test
1 second
memory limit per test
512 megabytes
input
standard input
output
standard output

Xiao Tang and Xiao Ming had an argument, and Xiao Tang lost. But Xiao Tang really wants to win, so he's trying to find evidence that he actually won.

Xiao Ming posted a travel story on his social media, and Xiao Tang wants to extract evidence of Xiao Ming admitting defeat from it.

Specifically: Xiao Tang has converted Xiao Ming's story into a lowercase string $$$s$$$ of length $$$n$$$, where the $$$i$$$-th character is $$$s_i$$$.

Xiao Tang can perform the following operation at most $$$k$$$ times:

Insert any character at any position in $$$s$$$.

Please help Xiao Tang calculate, assuming he performs the operations optimally, what is the maximum number of substrings "lose" he can find in $$$s$$$.

Note: This problem requires finding substrings (contiguous sequences), not subsequences.

Input

The first line contains an integer $$$k$$$.

The second line contains a lowercase string $$$s$$$.

$$$0 \leq k \leq 10^5$$$, $$$1 \leq |s| \leq 10^5$$$.

Output

Output an integer representing the answer.

Examples
Input
1
rose
Output
1
Input
4
louse
Output
2