n=int(input())
a=list(map(int,input().split()))
q=int(input())
m=list(map(int,input().split()))
b=[0]*2**n
for i in range(2**n):
  tr=bin(i)[2:].zfill(n)
  cnt=0
  for j in range(n):
    if tr[j]=='1':
      cnt+=a[j]
  b[i]=cnt
for i in m:
  if i in b:
      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 m=list(map(int,input().split())) m list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split b=[0]*2**n b [0]*2**n [0] 0 2**n 2 n for i in range(2**n):
  tr=bin(i)[2:].zfill(n)
  cnt=0
  for j in range(n):
    if tr[j]=='1':
      cnt+=a[j]
  b[i]=cnt i range(2**n) range 2**n 2 n tr=bin(i)[2:].zfill(n) tr bin(i)[2:].zfill(n) [2:].zfill [2:] (i) bin i 2: 2 zfill n cnt=0 cnt 0 for j in range(n):
    if tr[j]=='1':
      cnt+=a[j]
   j range(n) range n if tr[j]=='1':
      cnt+=a[j]
   tr[j]=='1' tr[j] tr j '1' cnt+=a[j] cnt a[j] a j b[i]=cnt b[i] b i cnt for i in m:
  if i in b:
      print('yes')
  else:
      print('no') i m if i in b:
      print('yes')
  else:
      print('no') i in b i b print('yes') print 'yes' print('no') print 'no' tr=bin(i)[2:].zfill(n) bin(i)[2:].zfill(n) tr m=list(map(int,input().split())) list(map(int,input().split())) m cnt=0 0 cnt a=list(map(int,input().split())) list(map(int,input().split())) a n=int(input()) int(input()) n b=[0]*2**n [0]*2**n b q=int(input()) int(input()) q cnt+=a[j] a[j] cnt
n=int(input())
a=list(map(int,input().split()))
q=int(input())
m=list(map(int,input().split()))
b=[0]*2**n
for i in range(2**n):
  tr=bin(i)[2:].zfill(n)
  cnt=0
  for j in range(n):
    if tr[j]=='1':
      cnt+=a[j]
  b[i]=cnt
for i in m:
  if i in b:
      print('yes')
  else:
      print('no')
