N,K=map(int,input().split()) A=list(map(int,input().split())) A.sort() i=0 E=0 while i