n1 = input()
A = map(int, raw_input().split())

n2 = input()
q = map(int, raw_input().split())

list = set()

def solve(i,m):
 if m == 0:
  return True
 if i >= n1 or m > sum(A):
  return False
 res = solve(i+1,m) or solve(i+1,m-A[i])
 return res

for m in q:
 if solve(0,m):
  print "yes"
 else:
  print "no" n1 = input() n1 input() input A = map(int, raw_input().split()) A map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split n2 = input() n2 input() input q = map(int, raw_input().split()) q map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split list = set() list set() set def solve(i,m):
 if m == 0:
  return True
 if i >= n1 or m > sum(A):
  return False
 res = solve(i+1,m) or solve(i+1,m-A[i])
 return res solve if m == 0:
  return True
  m == 0 m 0 return True True if i >= n1 or m > sum(A):
  return False
  i >= n1 or m > sum(A) i >= n1 i n1 m > sum(A) m sum(A) sum A return False False res = solve(i+1,m) or solve(i+1,m-A[i]) res solve(i+1,m) or solve(i+1,m-A[i]) solve(i+1,m) solve i+1 i 1 m solve(i+1,m-A[i]) solve i+1 i 1 m-A[i] m A[i] A i return res res i i m m for m in q:
 if solve(0,m):
  print "yes"
 else:
  print "no" m q if solve(0,m):
  print "yes"
 else:
  print "no" solve(0,m) solve 0 m print print def solve(i,m):
 if m == 0:
  return True
 if i >= n1 or m > sum(A):
  return False
 res = solve(i+1,m) or solve(i+1,m-A[i])
 return res def solve(i,m):
 if m == 0:
  return True
 if i >= n1 or m > sum(A):
  return False
 res = solve(i+1,m) or solve(i+1,m-A[i])
 return res solve q = map(int, raw_input().split()) map(int, raw_input().split()) q list = set() set() list A = map(int, raw_input().split()) map(int, raw_input().split()) A n2 = input() input() n2 n1 = input() input() n1
n1 = input()
A = map(int, raw_input().split())

n2 = input()
q = map(int, raw_input().split())

list = set()

def solve(i,m):
 if m == 0:
  return True
 if i >= n1 or m > sum(A):
  return False
 res = solve(i+1,m) or solve(i+1,m-A[i])
 return res

for m in q:
 if solve(0,m):
  print "yes"
 else:
  print "no"