isExist = [0]*2001 
n = int( input() )
A = [ int( val ) for val in input().rstrip().split( ' ' ) ]
for i in A:
	for j in range( 2000-i, 0, -1 ):
		if 1 == isExist[j]:
			isExist[ i+j ] = 1
	isExist[i] = 1

q = int( input() )
M = [ int( val ) for val in input().rstrip().split( ' ' ) ]
for i in range( 0, q ):
	if 1 == isExist[ M[i] ]:
		print( "yes" )
	else:
		print( "no" ) isExist = [0]*2001 isExist [0]*2001 [0] 0 2001 n = int( input() ) n int( input() ) int input() input int( val ) for val in input().rstrip().split( ' ' ) for val in input().rstrip().split( ' ' ) val input().rstrip().split( ' ' ) ().rstrip().split ().rstrip() ().rstrip () input rstrip split ' ' for val in input().rstrip().split( ' ' ) int( val ) int val A = [ int( val ) for val in input().rstrip().split( ' ' ) ] A [ int( val ) for val in input().rstrip().split( ' ' ) ] for i in A:
	for j in range( 2000-i, 0, -1 ):
		if 1 == isExist[j]:
			isExist[ i+j ] = 1
	isExist[i] = 1 i A for j in range( 2000-i, 0, -1 ):
		if 1 == isExist[j]:
			isExist[ i+j ] = 1
	 j range( 2000-i, 0, -1 ) range 2000-i 2000 i 0 -1 if 1 == isExist[j]:
			isExist[ i+j ] = 1
	 1 == isExist[j] 1 isExist[j] isExist j isExist[ i+j ] = 1 isExist[ i+j ] isExist i+j i j 1 isExist[i] = 1 isExist[i] isExist i 1 q = int( input() ) q int( input() ) int input() input int( val ) for val in input().rstrip().split( ' ' ) for val in input().rstrip().split( ' ' ) val input().rstrip().split( ' ' ) ().rstrip().split ().rstrip() ().rstrip () input rstrip split ' ' for val in input().rstrip().split( ' ' ) int( val ) int val M = [ int( val ) for val in input().rstrip().split( ' ' ) ] M [ int( val ) for val in input().rstrip().split( ' ' ) ] for i in range( 0, q ):
	if 1 == isExist[ M[i] ]:
		print( "yes" )
	else:
		print( "no" ) i range( 0, q ) range 0 q if 1 == isExist[ M[i] ]:
		print( "yes" )
	else:
		print( "no" ) 1 == isExist[ M[i] ] 1 isExist[ M[i] ] isExist M[i] M i print( "yes" ) print "yes" print( "no" ) print "no" isExist = [0]*2001 [0]*2001 isExist M = [ int( val ) for val in input().rstrip().split( ' ' ) ] [ int( val ) for val in input().rstrip().split( ' ' ) ] M A = [ int( val ) for val in input().rstrip().split( ' ' ) ] [ int( val ) for val in input().rstrip().split( ' ' ) ] A n = int( input() ) int( input() ) n q = int( input() ) int( input() ) q
isExist = [0]*2001 
n = int( input() )
A = [ int( val ) for val in input().rstrip().split( ' ' ) ]
for i in A:
	for j in range( 2000-i, 0, -1 ):
		if 1 == isExist[j]:
			isExist[ i+j ] = 1
	isExist[i] = 1

q = int( input() )
M = [ int( val ) for val in input().rstrip().split( ' ' ) ]
for i in range( 0, q ):
	if 1 == isExist[ M[i] ]:
		print( "yes" )
	else:
		print( "no" )