Problem Statement
There are NN candies arranged in a row from left to right.Each of these candies has one color that is one of the 109109 colors called Color 11, Color 22, ……, and Color 109109.For each i=1,2,…,Ni=1,2,…,N, the color of the ii-th candy from the left is Color cici.From this row, Takahashi can choose KK consecutive candies and get them.That is, he can choose an integer ii such that 1≤i≤N−K+11≤i≤N−K+1 and get the ii-th, (i+1)(i+1)-th, (i+2)(i+2)-th, ……, (i+K−1)(i+K−1)-th candy from the left.
Takahashi likes to eat colorful candies, so the more variety of colors his candies have, the happier he will be.Print the maximum possible number of distinct colors in candies he gets.
Constraints
-
1≤K≤N≤3×1051≤K≤N≤3×105
-
1≤ci≤1091≤ci≤109
-
All values in input are integers.
Input
Input is given from Standard Inp