N,K=map(int,input().split()) A=[int(i) for i in input().split()] dp=[set() for i in range(1<>i)&1==0: for x in dp[S]: dp[S|(1<