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

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

cand_list = []
for i in range(1, 2**n):
    cum_num=0
    for j in range(n):
        if i&1<<j:
            cum_num += A[j]
    cand_list.append(cum_num)
    
for m in M:
    if m in set(cand_list):
        print('yes')
    else:
        print('no')
