## 输入输出格式

Line 1: Two space-separated integers: $N$ and $K$

Lines 2..$N+1$: $N$ integers, one per line, the quality of the milk on day i appears on the ith line.

Line 1: One integer, the length of the longest pattern which occurs at least K times