n = int(input())
A = list(map(int, input().split()))
q = int(input())
M = list(map(int, input().split()))
flag = [False] * 2000

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

for i in range(2 ** n):
    total = 0
    for j in range(n):
        if((i >> j) & 1):
            total += A[j]
    flag[total] = True
for m in M:
    print('yes' if flag[m] else 'no')
