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

box=[]
for i in range(2**n):
	b = '{0:0{1}b}'.format(i,n)
	tmp=[]
	for j in range(n):
		if b[j]=='1':
			if b[j]=='1':
				tmp.append(A[j])
	box.append(sum(tmp))
	
for k in m:
	if k in box:
		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 box=[] box [] for i in range(2**n):
	b = '{0:0{1}b}'.format(i,n)
	tmp=[]
	for j in range(n):
		if b[j]=='1':
			if b[j]=='1':
				tmp.append(A[j])
	box.append(sum(tmp))
	 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 tmp=[] tmp [] for j in range(n):
		if b[j]=='1':
			if b[j]=='1':
				tmp.append(A[j])
	 j range(n) range n if b[j]=='1':
			if b[j]=='1':
				tmp.append(A[j])
	 b[j]=='1' b[j] b j '1' if b[j]=='1':
				tmp.append(A[j])
	 b[j]=='1' b[j] b j '1' tmp.append(A[j]) tmp.append tmp append A[j] A j box.append(sum(tmp)) box.append box append sum(tmp) sum tmp for k in m:
	if k in box:
		print("yes")
	else:
		print("no") k m if k in box:
		print("yes")
	else:
		print("no") k in box k box print("yes") print "yes" print("no") print "no" n=int (input()) int (input()) n 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 box=[] [] box tmp=[] [] 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()))

box=[]
for i in range(2**n):
	b = '{0:0{1}b}'.format(i,n)
	tmp=[]
	for j in range(n):
		if b[j]=='1':
			if b[j]=='1':
				tmp.append(A[j])
	box.append(sum(tmp))
	
for k in m:
	if k in box:
		print("yes")
	else:
		print("no")
