def bpc(n): ans = 0 while n: if n & 1: ans += 1 n >>= 1 return ans n,k = map(int,input().split()) a = list(map(int,input().split())) s = [] for i in range(1<