N dolls are placed in a row. Each doll is either a Ryan doll or an Apeach doll. A Ryan doll is written as 1 and an Apeach doll as 2. Find the length of the shortest contiguous block of dolls that contains at least K Ryan dolls.
Input
The first line contains N and K. (1≤K≤N≤106)
The second line contains N space-separated integers describing the dolls. Each value is 1 or 2.
Output
Print the length of the shortest contiguous block that contains at least K Ryan dolls. If no such block exists, print -1.