from functools import lru_cache

@lru_cache(maxsize = None)
def canProd(i,m):
     
    if m == 0:
        return True
    if i >= n:
        return False
 
    res = canProd(i+1,m) or canProd(i+1,m-a[i])
    return res
 
 
n = int(input())
a = [int(x) for x in input().split()]
q = int(input())
m = [int(x) for x in input().split()]

rs = [None]*2001

maxm = max(m)
minm = min(m)

for i in range(minm,maxm+1):
    if canProd(0,i):
        rs[i] = "yes"
    else:
        rs[i] = "no"

for i in m:
    print(rs[i]) from functools import lru_cache def canProd(i,m):
     
    if m == 0:
        return True
    if i >= n:
        return False
 
    res = canProd(i+1,m) or canProd(i+1,m-a[i])
    return res
 
  canProd if m == 0:
        return True
     m == 0 m 0 return True True if i >= n:
        return False
 
     i >= n i n return False False res = canProd(i+1,m) or canProd(i+1,m-a[i]) res canProd(i+1,m) or canProd(i+1,m-a[i]) canProd(i+1,m) canProd i+1 i 1 m canProd(i+1,m-a[i]) canProd i+1 i 1 m-a[i] m a[i] a i return res res i i m m @lru_cache(maxsize = None) canProd maxsize = None @lru_cache(maxsize = None) lru_cache maxsize = None maxsize None canProd n = int(input()) n int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x a = [int(x) for x in input().split()] a [int(x) for x in input().split()] q = int(input()) q int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x m = [int(x) for x in input().split()] m [int(x) for x in input().split()] rs = [None]*2001 rs [None]*2001 [None] None 2001 maxm = max(m) maxm max(m) max m minm = min(m) minm min(m) min m for i in range(minm,maxm+1):
    if canProd(0,i):
        rs[i] = "yes"
    else:
        rs[i] = "no" i range(minm,maxm+1) range minm maxm+1 maxm 1 if canProd(0,i):
        rs[i] = "yes"
    else:
        rs[i] = "no" canProd(0,i) canProd 0 i rs[i] = "yes" rs[i] rs i "yes" rs[i] = "no" rs[i] rs i "no" for i in m:
    print(rs[i]) i m print(rs[i]) print rs[i] rs i rs = [None]*2001 [None]*2001 rs def canProd(i,m):
     
    if m == 0:
        return True
    if i >= n:
        return False
 
    res = canProd(i+1,m) or canProd(i+1,m-a[i])
    return res
 
  def canProd(i,m):
     
    if m == 0:
        return True
    if i >= n:
        return False
 
    res = canProd(i+1,m) or canProd(i+1,m-a[i])
    return res
 
  canProd minm = min(m) min(m) minm n = int(input()) int(input()) n a = [int(x) for x in input().split()] [int(x) for x in input().split()] a m = [int(x) for x in input().split()] [int(x) for x in input().split()] m maxm = max(m) max(m) maxm q = int(input()) int(input()) q
from functools import lru_cache

@lru_cache(maxsize = None)
def canProd(i,m):
     
    if m == 0:
        return True
    if i >= n:
        return False
 
    res = canProd(i+1,m) or canProd(i+1,m-a[i])
    return res
 
 
n = int(input())
a = [int(x) for x in input().split()]
q = int(input())
m = [int(x) for x in input().split()]

rs = [None]*2001

maxm = max(m)
minm = min(m)

for i in range(minm,maxm+1):
    if canProd(0,i):
        rs[i] = "yes"
    else:
        rs[i] = "no"

for i in m:
    print(rs[i])