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

sumlist=[]

for i in range(2**n):
    sumA=0
    for j in range(n):
        if ((i>>j) & 1):
            sumA+=A[j]
    sumlist.append(sumA)

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

sumlist=[]

for i in range(2**n):
    sumA=0
    for j in range(n):
        if ((i>>j) & 1):
            sumA+=A[j]
    sumlist.append(sumA)

for k in range(q):
    if m[k] in sumlist:
        print("yes")
    else:
        print("no")
