Pair Count


We define the value of a string TT of length mm as the number of pairs (i,j)(i, j) such that i<ji < j, TiT_i is m, and TjT_j is u.

Given a string SS of length NN and an integer CC, find the maximum possible value of XX such that there exists a contiguous substring of SS with length XX and value at most CC.

Input

The first line contains two integers NN and CC.

The second line contains the string SS of length NN.

Output

Print a single integer representing the maximum possible length XX.

Constraints

  • 1≤N≤1061 \le N \le 10^6
  • 1≤C≤10181 \le C \le 10^18
  • SS consists only of lowercase English letters.

Example 1

Input 1
10 3
mumumumumu
Output 1
6
Explanation

The longest substring of SS that has the value ≤3\le 3 is umumumumumum.

Example 2

Input 2
8 1
monashuni
Output 2
8

Comments0


No comments yet

Be the first to comment.

New comment


Log in to join the discussion.