You are given an array A_0, A_1, A_2, ... , A_N−1 of N positive integers. Also, you are given an positive integer K. Your task is to find the largest positive integer M such that the following condition is satisfied:
There exists an integer 0≤i≤N−3M such that
The first line contains two integers, N and K. The second line contains N integers, the array A given in order.
Output a single positive integer denoting the largest possible M. If there is no such M, output 0.