# -*- coding: utf-8 -*-
"""
Created on Wed May  2 21:28:06 2018
ALDS1_5a
@author: maezawa
"""
import itertools as itr

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

sum_array = []
for r in range(1,n+1):
    for comb in itr.combinations(a, r):
        sum_array.append(sum(comb))

for i in m:
    yesorno = 'no'
    for j in sum_array:
        #print(i, j)
        if i == j:
            yesorno = 'yes'
            break
    print(yesorno)
 """
Created on Wed May  2 21:28:06 2018
ALDS1_5a
@author: maezawa
""" import itertools as itr itertools 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_array = [] sum_array [] for r in range(1,n+1):
    for comb in itr.combinations(a, r):
        sum_array.append(sum(comb)) r range(1,n+1) range 1 n+1 n 1 for comb in itr.combinations(a, r):
        sum_array.append(sum(comb)) comb itr.combinations(a, r) itr.combinations itr combinations a r sum_array.append(sum(comb)) sum_array.append sum_array append sum(comb) sum comb for i in m:
    yesorno = 'no'
    for j in sum_array:
        #print(i, j)
        if i == j:
            yesorno = 'yes'
            break
    print(yesorno) i m yesorno = 'no' yesorno 'no' for j in sum_array:
        #print(i, j)
        if i == j:
            yesorno = 'yes'
            break
     j sum_array if i == j:
            yesorno = 'yes'
            break
     i == j i j yesorno = 'yes' yesorno 'yes' break print(yesorno) print yesorno yesorno = 'yes' 'yes' yesorno q = int(input()) int(input()) q yesorno = 'no' 'no' yesorno m = list(map(int, input().split())) list(map(int, input().split())) m sum_array = [] [] sum_array a = list(map(int, input().split())) list(map(int, input().split())) a n = int(input()) int(input()) n
# -*- coding: utf-8 -*-
"""
Created on Wed May  2 21:28:06 2018
ALDS1_5a
@author: maezawa
"""
import itertools as itr

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

sum_array = []
for r in range(1,n+1):
    for comb in itr.combinations(a, r):
        sum_array.append(sum(comb))

for i in m:
    yesorno = 'no'
    for j in sum_array:
        #print(i, j)
        if i == j:
            yesorno = 'yes'
            break
    print(yesorno)

