n = int(input())
a = list(map(int, input().split()))
input()
m = list(map(int, input().split()))

n2 = 2**n
aa = [0 for _ in range(n2)]
for i in range(n):
    t = 2**i
    for j in range(n2):
        if (j//t)%2:
            aa[j] += a[i]
aa = set(aa)

for k in m:
    if k in aa:
        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 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 n2 = 2**n n2 2**n 2 n 0 for _ in range(n2) for _ in range(n2) _ range(n2) range n2 for _ in range(n2) 0 aa = [0 for _ in range(n2)] aa [0 for _ in range(n2)] for i in range(n):
    t = 2**i
    for j in range(n2):
        if (j//t)%2:
            aa[j] += a[i] i range(n) range n t = 2**i t 2**i 2 i for j in range(n2):
        if (j//t)%2:
            aa[j] += a[i] j range(n2) range n2 if (j//t)%2:
            aa[j] += a[i] (j//t)%2 j//t j t 2 aa[j] += a[i] aa[j] aa j a[i] a i aa = set(aa) aa set(aa) set aa for k in m:
    if k in aa:
        print('yes')
    else:
        print('no') k m if k in aa:
        print('yes')
    else:
        print('no') k in aa k aa print('yes') print 'yes' print('no') print 'no' aa = set(aa) set(aa) aa n = int(input()) int(input()) n aa = [0 for _ in range(n2)] [0 for _ in range(n2)] aa a = list(map(int, input().split())) list(map(int, input().split())) a n2 = 2**n 2**n n2 m = list(map(int, input().split())) list(map(int, input().split())) m t = 2**i 2**i t
n = int(input())
a = list(map(int, input().split()))
input()
m = list(map(int, input().split()))

n2 = 2**n
aa = [0 for _ in range(n2)]
for i in range(n):
    t = 2**i
    for j in range(n2):
        if (j//t)%2:
            aa[j] += a[i]
aa = set(aa)

for k in m:
    if k in aa:
        print('yes')
    else:
        print('no')