n = int(input())
A = list(map(int, input().split()))
q = int(input())
m = list(map(int, input().split()))
combi = set()

for i in range(1<<n):
    total = 0
    for j in range(n):
        if (i >> j) & 1:
            total += A[j]
    combi.add(total)

for num in m:
    if num in combi:
        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 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 combi = set() combi set() set for i in range(1<<n):
    total = 0
    for j in range(n):
        if (i >> j) & 1:
            total += A[j]
    combi.add(total) i range(1<<n) range 1<<n 1 n total = 0 total 0 for j in range(n):
        if (i >> j) & 1:
            total += A[j]
     j range(n) range n if (i >> j) & 1:
            total += A[j]
     (i >> j) & 1 i >> j i j 1 total += A[j] total A[j] A j combi.add(total) combi.add combi add total for num in m:
    if num in combi:
        print('yes')
    else:
        print('no') num m if num in combi:
        print('yes')
    else:
        print('no') num in combi num combi print('yes') print 'yes' print('no') print 'no' q = int(input()) int(input()) q total += A[j] A[j] total m = list(map(int, input().split())) list(map(int, input().split())) m n = int(input()) int(input()) n A = list(map(int, input().split())) list(map(int, input().split())) A combi = set() set() combi total = 0 0 total
n = int(input())
A = list(map(int, input().split()))
q = int(input())
m = list(map(int, input().split()))
combi = set()

for i in range(1<<n):
    total = 0
    for j in range(n):
        if (i >> j) & 1:
            total += A[j]
    combi.add(total)

for num in m:
    if num in combi:
        print('yes')
    else:
        print('no')

