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

flag = [0]*(2000+1)
for status in range(2**n):
    tmp = 0
    for mask in range(n):
        if status&(1<<mask):
            tmp += A[mask]
    flag[tmp] = 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 = [0]*(2000+1) flag [0]*(2000+1) [0] 0 2000+1 2000 1 for status in range(2**n):
    tmp = 0
    for mask in range(n):
        if status&(1<<mask):
            tmp += A[mask]
    flag[tmp] = True status range(2**n) range 2**n 2 n tmp = 0 tmp 0 for mask in range(n):
        if status&(1<<mask):
            tmp += A[mask]
     mask range(n) range n if status&(1<<mask):
            tmp += A[mask]
     status&(1<<mask) status 1<<mask 1 mask tmp += A[mask] tmp A[mask] A mask flag[tmp] = True flag[tmp] flag tmp 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' M = list(map(int,input().split())) list(map(int,input().split())) M flag = [0]*(2000+1) [0]*(2000+1) flag n = int(input()) int(input()) n tmp += A[mask] A[mask] tmp A = list(map(int,input().split())) list(map(int,input().split())) A tmp = 0 0 tmp q = int(input()) int(input()) q
n = int(input())
A = list(map(int,input().split()))
q = int(input())
M = list(map(int,input().split()))

flag = [0]*(2000+1)
for status in range(2**n):
    tmp = 0
    for mask in range(n):
        if status&(1<<mask):
            tmp += A[mask]
    flag[tmp] = True

for m in M:
    print('yes' if flag[m] else 'no')
