N=int(input())
*A,=map(int,input().split())
Q=int(input())
*M,=map(int,input().split())
mf=['no']*Q
t=[]
for i in range(0,2**N):
    ans=0
    for j in range(N):
        if (i>>j&1):
            ans+=A[j]
    t.append(ans)
tset=set(t)

for i in range(Q):
    if M[i] in tset:
        mf[i] = 'yes'

for i in mf:
    print(i) N=int(input()) N int(input()) int input() input *A,=map(int,input().split()) *A A map(int,input().split()) map int input().split() ().split () input split Q=int(input()) Q int(input()) int input() input *M,=map(int,input().split()) *M M map(int,input().split()) map int input().split() ().split () input split mf=['no']*Q mf ['no']*Q ['no'] 'no' Q t=[] t [] for i in range(0,2**N):
    ans=0
    for j in range(N):
        if (i>>j&1):
            ans+=A[j]
    t.append(ans) i range(0,2**N) range 0 2**N 2 N ans=0 ans 0 for j in range(N):
        if (i>>j&1):
            ans+=A[j]
     j range(N) range N if (i>>j&1):
            ans+=A[j]
     i>>j&1 i>>j i j 1 ans+=A[j] ans A[j] A j t.append(ans) t.append t append ans tset=set(t) tset set(t) set t for i in range(Q):
    if M[i] in tset:
        mf[i] = 'yes' i range(Q) range Q if M[i] in tset:
        mf[i] = 'yes' M[i] in tset M[i] M i tset mf[i] = 'yes' mf[i] mf i 'yes' for i in mf:
    print(i) i mf print(i) print i ans+=A[j] A[j] ans mf=['no']*Q ['no']*Q mf tset=set(t) set(t) tset t=[] [] t ans=0 0 ans N=int(input()) int(input()) N Q=int(input()) int(input()) Q
N=int(input())
*A,=map(int,input().split())
Q=int(input())
*M,=map(int,input().split())
mf=['no']*Q
t=[]
for i in range(0,2**N):
    ans=0
    for j in range(N):
        if (i>>j&1):
            ans+=A[j]
    t.append(ans)
tset=set(t)

for i in range(Q):
    if M[i] in tset:
        mf[i] = 'yes'

for i in mf:
    print(i)
