N,M = map(int, input().split()) V = list(map(int, input().split())) l = [0] * (1<>j) & 1: continue dp[i|(1<