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

add_result = [0]*2001
for i in a:
	for j in range(2000, -1, -1):
		if add_result[j] == 1:
			add_result[i+j] = 1
			#print(i, j, i+j)	
	add_result[i] = 1
	#print i

for target in m:
	if add_result[target] == 1:
		print("yes")
	else:
		print("no") n = int(raw_input()) n int(raw_input()) int raw_input() raw_input a = map(int, raw_input().split()) a map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split q = int(raw_input()) q int(raw_input()) int raw_input() raw_input m = map(int, raw_input().split()) m map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split add_result = [0]*2001 add_result [0]*2001 [0] 0 2001 for i in a:
	for j in range(2000, -1, -1):
		if add_result[j] == 1:
			add_result[i+j] = 1
			#print(i, j, i+j)	
	add_result[i] = 1
	#print i i a for j in range(2000, -1, -1):
		if add_result[j] == 1:
			add_result[i+j] = 1
			#print(i, j, i+j)	
	 j range(2000, -1, -1) range 2000 -1 -1 if add_result[j] == 1:
			add_result[i+j] = 1
			#print(i, j, i+j)	
	 add_result[j] == 1 add_result[j] add_result j 1 add_result[i+j] = 1 add_result[i+j] add_result i+j i j 1 add_result[i] = 1 add_result[i] add_result i 1 for target in m:
	if add_result[target] == 1:
		print("yes")
	else:
		print("no") target m if add_result[target] == 1:
		print("yes")
	else:
		print("no") add_result[target] == 1 add_result[target] add_result target 1 print("yes") print "yes" print("no") print "no" a = map(int, raw_input().split()) map(int, raw_input().split()) a m = map(int, raw_input().split()) map(int, raw_input().split()) m n = int(raw_input()) int(raw_input()) n q = int(raw_input()) int(raw_input()) q add_result = [0]*2001 [0]*2001 add_result
n = int(raw_input())
a = map(int, raw_input().split())
q = int(raw_input())
m = map(int, raw_input().split())

add_result = [0]*2001
for i in a:
	for j in range(2000, -1, -1):
		if add_result[j] == 1:
			add_result[i+j] = 1
			#print(i, j, i+j)	
	add_result[i] = 1
	#print i

for target in m:
	if add_result[target] == 1:
		print("yes")
	else:
		print("no")