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