There are `N` (1 ≤ `N` ≤ 10^{5}) colored blocks (numbered 1 to `N` from left to right) which are lined up in a row. And the `i`-th block's color is `C _{i}` (1 ≤

For example, one sequence is {1 1 1 2 2 3 2 2} and K=1. We can remove the 6-th block, then we will get sequence {1 1 1 2 2 2 2}. The length of the largest consecutive blocks with the same color is 4.

Input will consist of multiple test cases and each case will consist of two lines.
For each test case the program has to read the integers `N` and `K`, separated by a blank, from the first line. The color of the blocks will be given in the second line of the test case, separated by a blank. The `i`-th integer means `C _{i}`.

提交代码