n=int(input())
A=list(map(int,input().split()))
r=[]
def f(s,k):
    if k>=0:
        global r
        r+=[s]
        f(s+A[k-1],k-1)
        f(s,k-1)
f(0,n)
input()
for e in map(int,input().split()):print(['no','yes'][e in r]) 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 r=[] r [] def f(s,k):
    if k>=0:
        global r
        r+=[s]
        f(s+A[k-1],k-1)
        f(s,k-1) f if k>=0:
        global r
        r+=[s]
        f(s+A[k-1],k-1)
        f(s,k-1) k>=0 k 0 global r r+=[s] r [s] s f(s+A[k-1],k-1) f s+A[k-1] s A[k-1] A k-1 k 1 k-1 k 1 f(s,k-1) f s k-1 k 1 s s k k f(0,n) f 0 n input() input for e in map(int,input().split()):print(['no','yes'][e in r]) e map(int,input().split()) map int input().split() ().split () input split r=[] [] r n=int(input()) int(input()) n def f(s,k):
    if k>=0:
        global r
        r+=[s]
        f(s+A[k-1],k-1)
        f(s,k-1) def f(s,k):
    if k>=0:
        global r
        r+=[s]
        f(s+A[k-1],k-1)
        f(s,k-1) f A=list(map(int,input().split())) list(map(int,input().split())) A
n=int(input())
A=list(map(int,input().split()))
r=[]
def f(s,k):
    if k>=0:
        global r
        r+=[s]
        f(s+A[k-1],k-1)
        f(s,k-1)
f(0,n)
input()
for e in map(int,input().split()):print(['no','yes'][e in r])
