n = int(input())
A = [int(j) for j in input().split()]
q = int(input())
m = [int(j) for j in input().split()]
total = []
for i in range(2**n):
    bag = []
    for j in range(n):
        if ((i>>j)&1):
            bag.append(A[j])
    total.append(sum(bag))

for m1 in m:
    if m1 in set(total):
        print('yes')
    else:
        print('no')  n = int(input()) n int(input()) int input() input int(j) for j in input().split() for j in input().split() j input().split() ().split () input split for j in input().split() int(j) int j A = [int(j) for j in input().split()] A [int(j) for j in input().split()] q = int(input()) q int(input()) int input() input int(j) for j in input().split() for j in input().split() j input().split() ().split () input split for j in input().split() int(j) int j m = [int(j) for j in input().split()] m [int(j) for j in input().split()] total = [] total [] for i in range(2**n):
    bag = []
    for j in range(n):
        if ((i>>j)&1):
            bag.append(A[j])
    total.append(sum(bag)) i range(2**n) range 2**n 2 n bag = [] bag [] for j in range(n):
        if ((i>>j)&1):
            bag.append(A[j])
     j range(n) range n if ((i>>j)&1):
            bag.append(A[j])
     (i>>j)&1 i>>j i j 1 bag.append(A[j]) bag.append bag append A[j] A j total.append(sum(bag)) total.append total append sum(bag) sum bag for m1 in m:
    if m1 in set(total):
        print('yes')
    else:
        print('no')  m1 m if m1 in set(total):
        print('yes')
    else:
        print('no')  m1 in set(total) m1 set(total) set total print('yes') print 'yes' print('no') print 'no' m = [int(j) for j in input().split()] [int(j) for j in input().split()] m n = int(input()) int(input()) n A = [int(j) for j in input().split()] [int(j) for j in input().split()] A bag = [] [] bag total = [] [] total q = int(input()) int(input()) q
n = int(input())
A = [int(j) for j in input().split()]
q = int(input())
m = [int(j) for j in input().split()]
total = []
for i in range(2**n):
    bag = []
    for j in range(n):
        if ((i>>j)&1):
            bag.append(A[j])
    total.append(sum(bag))

for m1 in m:
    if m1 in set(total):
        print('yes')
    else:
        print('no') 
