import collections as c n,k = map(int,input().split()) p = list(map(int,input().split())) s = c.Counter(p) t = [] for i,j in s.items(): t.append([i,j]) t.sort(reverse = True) cnt = 0 ans = 0 while ans+t[cnt][1]<=k and cnt