def solve(i,m):
	if m == 0:
		return True
	if i >= n:
		return False
	res = solve(i+1,m) or solve(i+1,m-A[i])
	return res

n = int(input())
A = input()
A = [int(s) for s in A.split()]
q = int(input())
m = input()
m = [int(s) for s in m.split()]

ans = []
s = sum(A)
for mm in m:
	if s < mm:
		ans.append('no')
	else:
		ans.append({True:'yes',False:'no'}[solve(0,mm)])
#ans = [{True:'yes',False:'no'}[solve(0,mm)] for mm in m]
print('\n'.join(ans)) def solve(i,m):
	if m == 0:
		return True
	if i >= n:
		return False
	res = solve(i+1,m) or solve(i+1,m-A[i])
	return res solve if m == 0:
		return True
	 m == 0 m 0 return True True if i >= n:
		return False
	 i >= n i n return False False res = solve(i+1,m) or solve(i+1,m-A[i]) res solve(i+1,m) or solve(i+1,m-A[i]) solve(i+1,m) solve i+1 i 1 m solve(i+1,m-A[i]) solve i+1 i 1 m-A[i] m A[i] A i return res res i i m m n = int(input()) n int(input()) int input() input A = input() A input() input int(s) for s in A.split() for s in A.split() s A.split() A.split A split for s in A.split() int(s) int s A = [int(s) for s in A.split()] A [int(s) for s in A.split()] q = int(input()) q int(input()) int input() input m = input() m input() input int(s) for s in m.split() for s in m.split() s m.split() m.split m split for s in m.split() int(s) int s m = [int(s) for s in m.split()] m [int(s) for s in m.split()] ans = [] ans [] s = sum(A) s sum(A) sum A for mm in m:
	if s < mm:
		ans.append('no')
	else:
		ans.append({True:'yes',False:'no'}[solve(0,mm)])
#ans = [{True:'yes',False:'no'}[solve(0,mm)] for mm in m] mm m if s < mm:
		ans.append('no')
	else:
		ans.append({True:'yes',False:'no'}[solve(0,mm)])
#ans = [{True:'yes',False:'no'}[solve(0,mm)] for mm in m] s < mm s mm ans.append('no') ans.append ans append 'no' ans.append({True:'yes',False:'no'}[solve(0,mm)]) ans.append ans append {True:'yes',False:'no'}[solve(0,mm)] {True:'yes',False:'no'} True True 'yes' False False 'no' solve(0,mm) solve 0 mm print('\n'.join(ans)) print '\n'.join(ans) '\n'.join '\n' join ans m = [int(s) for s in m.split()] [int(s) for s in m.split()] m q = int(input()) int(input()) q A = input() input() A s = sum(A) sum(A) s def solve(i,m):
	if m == 0:
		return True
	if i >= n:
		return False
	res = solve(i+1,m) or solve(i+1,m-A[i])
	return res def solve(i,m):
	if m == 0:
		return True
	if i >= n:
		return False
	res = solve(i+1,m) or solve(i+1,m-A[i])
	return res solve ans = [] [] ans m = input() input() m n = int(input()) int(input()) n A = [int(s) for s in A.split()] [int(s) for s in A.split()] A
def solve(i,m):
	if m == 0:
		return True
	if i >= n:
		return False
	res = solve(i+1,m) or solve(i+1,m-A[i])
	return res

n = int(input())
A = input()
A = [int(s) for s in A.split()]
q = int(input())
m = input()
m = [int(s) for s in m.split()]

ans = []
s = sum(A)
for mm in m:
	if s < mm:
		ans.append('no')
	else:
		ans.append({True:'yes',False:'no'}[solve(0,mm)])
#ans = [{True:'yes',False:'no'}[solve(0,mm)] for mm in m]
print('\n'.join(ans))