n=int(input())
A=list(map(int,input().split()))
q=int(input())
M=list(map(int,input().split()))

pattern=[]

for i in range(2**n):
    s=0
    for j in range(n):
        if i >> j & 1:
            s+=A[j]
    pattern.append(s)
P=set(pattern)

for m in M:
    print('yes' if m in P else '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 pattern=[] pattern [] for i in range(2**n):
    s=0
    for j in range(n):
        if i >> j & 1:
            s+=A[j]
    pattern.append(s) i range(2**n) range 2**n 2 n s=0 s 0 for j in range(n):
        if i >> j & 1:
            s+=A[j]
     j range(n) range n if i >> j & 1:
            s+=A[j]
     i >> j & 1 i >> j i j 1 s+=A[j] s A[j] A j pattern.append(s) pattern.append pattern append s P=set(pattern) P set(pattern) set pattern for m in M:
    print('yes' if m in P else 'no') m M print('yes' if m in P else 'no') print 'yes' if m in P else 'no' m in P m P 'yes' 'no' M=list(map(int,input().split())) list(map(int,input().split())) M n=int(input()) int(input()) n s=0 0 s P=set(pattern) set(pattern) P s+=A[j] A[j] s q=int(input()) int(input()) q pattern=[] [] pattern A=list(map(int,input().split())) list(map(int,input().split())) A
n=int(input())
A=list(map(int,input().split()))
q=int(input())
M=list(map(int,input().split()))

pattern=[]

for i in range(2**n):
    s=0
    for j in range(n):
        if i >> j & 1:
            s+=A[j]
    pattern.append(s)
P=set(pattern)

for m in M:
    print('yes' if m in P else 'no')
