n = int(input())
a = map(int,raw_input().split())
p = int(input())
m = map(int,raw_input().split())
def goukei(i,m):
  if m ==0:
    return True
  if i >= n or m > sum(a):
    return False
  r = goukei(i + 1, m) or goukei(i + 1, m - a[i])
  return r
 
for u in range(0,p):

  if goukei(0, m[u]):
    print "yes"
  else:
    print "no" n = int(input()) n int(input()) int input() input a = map(int,raw_input().split()) a map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split p = int(input()) p int(input()) int input() input m = map(int,raw_input().split()) m map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split def goukei(i,m):
  if m ==0:
    return True
  if i >= n or m > sum(a):
    return False
  r = goukei(i + 1, m) or goukei(i + 1, m - a[i])
  return r
  goukei if m ==0:
    return True
   m ==0 m 0 return True True if i >= n or m > sum(a):
    return False
   i >= n or m > sum(a) i >= n i n m > sum(a) m sum(a) sum a return False False r = goukei(i + 1, m) or goukei(i + 1, m - a[i]) r goukei(i + 1, m) or goukei(i + 1, m - a[i]) goukei(i + 1, m) goukei i + 1 i 1 m goukei(i + 1, m - a[i]) goukei i + 1 i 1 m - a[i] m a[i] a i return r r i i m m for u in range(0,p):

  if goukei(0, m[u]):
    print "yes"
  else:
    print "no" u range(0,p) range 0 p if goukei(0, m[u]):
    print "yes"
  else:
    print "no" goukei(0, m[u]) goukei 0 m[u] m u print print def goukei(i,m):
  if m ==0:
    return True
  if i >= n or m > sum(a):
    return False
  r = goukei(i + 1, m) or goukei(i + 1, m - a[i])
  return r
  def goukei(i,m):
  if m ==0:
    return True
  if i >= n or m > sum(a):
    return False
  r = goukei(i + 1, m) or goukei(i + 1, m - a[i])
  return r
  goukei m = map(int,raw_input().split()) map(int,raw_input().split()) m a = map(int,raw_input().split()) map(int,raw_input().split()) a n = int(input()) int(input()) n p = int(input()) int(input()) p
n = int(input())
a = map(int,raw_input().split())
p = int(input())
m = map(int,raw_input().split())
def goukei(i,m):
  if m ==0:
    return True
  if i >= n or m > sum(a):
    return False
  r = goukei(i + 1, m) or goukei(i + 1, m - a[i])
  return r
 
for u in range(0,p):

  if goukei(0, m[u]):
    print "yes"
  else:
    print "no"