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

d={}
for i in range(2**n):
    c=0
    for j in range(n):
        if (i>>j)&1:
            c+=a[j]
    d[c]=1

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

d={}
for i in range(2**n):
    c=0
    for j in range(n):
        if (i>>j)&1:
            c+=a[j]
    d[c]=1

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