def solve(): n, s = map(int, input().split()) a = list(map(int, input().split())) f = (1<<(s+1))-1 dp = 1 for i in range(n): dp |= (dp<