n=int(raw_input())
a=map(int,raw_input().split())
q=int(raw_input())
m=map(int,raw_input().split())
ans=set()
p=(1<<n)-1
while p:
    w=str(bin(p))[2:]
    bits='0'*(n-len(w))+w
    p-=1
    k=0
    for i,j in enumerate(bits):
        if j=='1':
            k+=a[i]
    ans.add(k)
for i in m:
    print 'yes' if i in ans else 'no' n=int(raw_input()) n int(raw_input()) int raw_input() raw_input a=map(int,raw_input().split()) a map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split q=int(raw_input()) q int(raw_input()) int raw_input() raw_input m=map(int,raw_input().split()) m map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split ans=set() ans set() set p=(1<<n)-1 p (1<<n)-1 1<<n 1 n 1 while p:
    w=str(bin(p))[2:]
    bits='0'*(n-len(w))+w
    p-=1
    k=0
    for i,j in enumerate(bits):
        if j=='1':
            k+=a[i]
    ans.add(k) p w=str(bin(p))[2:] w str(bin(p))[2:] (bin(p)) str bin(p) bin p 2: 2 bits='0'*(n-len(w))+w bits '0'*(n-len(w))+w '0'*(n-len(w)) '0' n-len(w) n len(w) len w w p-=1 p 1 k=0 k 0 for i,j in enumerate(bits):
        if j=='1':
            k+=a[i]
     i j enumerate(bits) enumerate bits if j=='1':
            k+=a[i]
     j=='1' j '1' k+=a[i] k a[i] a i ans.add(k) ans.add ans add k for i in m:
    print 'yes' if i in ans else 'no' i m print 'yes' if i in ans else 'no' i in ans i ans 'yes' 'no' q=int(raw_input()) int(raw_input()) q ans=set() set() ans k=0 0 k p-=1 1 p n=int(raw_input()) int(raw_input()) n p=(1<<n)-1 (1<<n)-1 p bits='0'*(n-len(w))+w '0'*(n-len(w))+w bits a=map(int,raw_input().split()) map(int,raw_input().split()) a w=str(bin(p))[2:] str(bin(p))[2:] w m=map(int,raw_input().split()) map(int,raw_input().split()) m k+=a[i] a[i] k
n=int(raw_input())
a=map(int,raw_input().split())
q=int(raw_input())
m=map(int,raw_input().split())
ans=set()
p=(1<<n)-1
while p:
    w=str(bin(p))[2:]
    bits='0'*(n-len(w))+w
    p-=1
    k=0
    for i,j in enumerate(bits):
        if j=='1':
            k+=a[i]
    ans.add(k)
for i in m:
    print 'yes' if i in ans else 'no'