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

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

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