# coding: utf-8
# Here your code !
n=int(input())
A=[int(i) for i in input().split()]
q=int(input())
m=[int(i) for i in input().split()]


from itertools import combinations
x=[]
for i in range(len(A)):
    t=(list(combinations(A,i)))
    x.append(t)
combi=set()
for i in x:
    for j in i:
        combi.add(sum(j))

for i in m:
    if i in combi:
        print("yes")
    else:
        print("no") n=int(input()) n int(input()) int input() input int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i A=[int(i) for i in input().split()] A [int(i) for i in input().split()] q=int(input()) q int(input()) int input() input int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i m=[int(i) for i in input().split()] m [int(i) for i in input().split()] from itertools import combinations x=[] x [] for i in range(len(A)):
    t=(list(combinations(A,i)))
    x.append(t) i range(len(A)) range len(A) len A t=(list(combinations(A,i))) t list(combinations(A,i)) list combinations(A,i) combinations A i x.append(t) x.append x append t combi=set() combi set() set for i in x:
    for j in i:
        combi.add(sum(j)) i x for j in i:
        combi.add(sum(j)) j i combi.add(sum(j)) combi.add combi add sum(j) sum j for i in m:
    if i in combi:
        print("yes")
    else:
        print("no") i m if i in combi:
        print("yes")
    else:
        print("no") i in combi i combi print("yes") print "yes" print("no") print "no" t=(list(combinations(A,i))) list(combinations(A,i)) t combi=set() set() combi x=[] [] x q=int(input()) int(input()) q m=[int(i) for i in input().split()] [int(i) for i in input().split()] m A=[int(i) for i in input().split()] [int(i) for i in input().split()] A n=int(input()) int(input()) n
# coding: utf-8
# Here your code !
n=int(input())
A=[int(i) for i in input().split()]
q=int(input())
m=[int(i) for i in input().split()]


from itertools import combinations
x=[]
for i in range(len(A)):
    t=(list(combinations(A,i)))
    x.append(t)
combi=set()
for i in x:
    for j in i:
        combi.add(sum(j))

for i in m:
    if i in combi:
        print("yes")
    else:
        print("no")