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