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

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

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

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

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