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

sum_list = []
for i in range(2**n):
    b = '{0:0{1}b}'.format(i, n)

    temp = []
    for j in range(n):
        if b[j] == '1':
            temp.append(A[j])
    sum_list.append(sum(temp))

for k in m:
    print('yes' if k in sum_list 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 sum_list = [] sum_list [] for i in range(2**n):
    b = '{0:0{1}b}'.format(i, n)

    temp = []
    for j in range(n):
        if b[j] == '1':
            temp.append(A[j])
    sum_list.append(sum(temp)) i range(2**n) range 2**n 2 n b = '{0:0{1}b}'.format(i, n) b '{0:0{1}b}'.format(i, n) '{0:0{1}b}'.format '{0:0{1}b}' format i n temp = [] temp [] for j in range(n):
        if b[j] == '1':
            temp.append(A[j])
     j range(n) range n if b[j] == '1':
            temp.append(A[j])
     b[j] == '1' b[j] b j '1' temp.append(A[j]) temp.append temp append A[j] A j sum_list.append(sum(temp)) sum_list.append sum_list append sum(temp) sum temp for k in m:
    print('yes' if k in sum_list else 'no') k m print('yes' if k in sum_list else 'no') print 'yes' if k in sum_list else 'no' k in sum_list k sum_list 'yes' 'no' n = int(input()) int(input()) n q = int(input()) int(input()) q sum_list = [] [] sum_list temp = [] [] temp A = list(map(int, input().split())) list(map(int, input().split())) A b = '{0:0{1}b}'.format(i, n) '{0:0{1}b}'.format(i, n) b m = list(map(int, input().split())) list(map(int, input().split())) m
n = int(input())
A = list(map(int, input().split()))
q = int(input())
m = list(map(int, input().split()))

sum_list = []
for i in range(2**n):
    b = '{0:0{1}b}'.format(i, n)

    temp = []
    for j in range(n):
        if b[j] == '1':
            temp.append(A[j])
    sum_list.append(sum(temp))

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