N,K=map(int,input().split()) A=list(map(int,input().split())) S=set() for i in range(1<=K: x=0 for j in range(N): if i&(1<