n = int(input())
A = list(map(int, input().split()))
q = int(input())
L = list(map(int, input().split()))
X = list()
for bit in range(1<<n):
  A2 = list()
  for i in range(n):
    if bit & (1<<i):
      A2.append(A[i])
  X.append(sum(A2))
for i in range(q):
  if L[i] in X:
    print('yes')
  else:
    print('no') n = int(input()) n int(input()) int input() input A = list(map(int, input().split())) A list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split q = int(input()) q int(input()) int input() input L = list(map(int, input().split())) L list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split X = list() X list() list for bit in range(1<<n):
  A2 = list()
  for i in range(n):
    if bit & (1<<i):
      A2.append(A[i])
  X.append(sum(A2)) bit range(1<<n) range 1<<n 1 n A2 = list() A2 list() list for i in range(n):
    if bit & (1<<i):
      A2.append(A[i])
   i range(n) range n if bit & (1<<i):
      A2.append(A[i])
   bit & (1<<i) bit 1<<i 1 i A2.append(A[i]) A2.append A2 append A[i] A i X.append(sum(A2)) X.append X append sum(A2) sum A2 for i in range(q):
  if L[i] in X:
    print('yes')
  else:
    print('no') i range(q) range q if L[i] in X:
    print('yes')
  else:
    print('no') L[i] in X L[i] L i X print('yes') print 'yes' print('no') print 'no' q = int(input()) int(input()) q L = list(map(int, input().split())) list(map(int, input().split())) L A = list(map(int, input().split())) list(map(int, input().split())) A X = list() list() X A2 = list() list() A2 n = int(input()) int(input()) n
n = int(input())
A = list(map(int, input().split()))
q = int(input())
L = list(map(int, input().split()))
X = list()
for bit in range(1<<n):
  A2 = list()
  for i in range(n):
    if bit & (1<<i):
      A2.append(A[i])
  X.append(sum(A2))
for i in range(q):
  if L[i] in X:
    print('yes')
  else:
    print('no')
