n = int(input())
A = list(map(int,input().split()))
m = int(input())
q = list(map(int,input().split()))

S = set()
for i in range(1<<n):
  s = 0
  for j in range(n):
    if (i>>j)&1:
      s += A[j]
  S.add(s)


for j in q:
  if j in S:
    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 m = int(input()) m int(input()) int input() input q = list(map(int,input().split())) q list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split S = set() S set() set for i in range(1<<n):
  s = 0
  for j in range(n):
    if (i>>j)&1:
      s += A[j]
  S.add(s) i range(1<<n) range 1<<n 1 n s = 0 s 0 for j in range(n):
    if (i>>j)&1:
      s += A[j]
   j range(n) range n if (i>>j)&1:
      s += A[j]
   (i>>j)&1 i>>j i j 1 s += A[j] s A[j] A j S.add(s) S.add S add s for j in q:
  if j in S:
    print("yes")
  else:
    print("no") j q if j in S:
    print("yes")
  else:
    print("no") j in S j S print("yes") print "yes" print("no") print "no" m = int(input()) int(input()) m A = list(map(int,input().split())) list(map(int,input().split())) A q = list(map(int,input().split())) list(map(int,input().split())) q n = int(input()) int(input()) n s = 0 0 s S = set() set() S s += A[j] A[j] s
n = int(input())
A = list(map(int,input().split()))
m = int(input())
q = list(map(int,input().split()))

S = set()
for i in range(1<<n):
  s = 0
  for j in range(n):
    if (i>>j)&1:
      s += A[j]
  S.add(s)


for j in q:
  if j in S:
    print("yes")
  else:
    print("no")
