#include<stdio.h>
 
#define AMAX 20
#define MMAX 200

int gA[AMAX+1],gM[MMAX+1];
int gn;

int solve( int p, int t )
{
	if( 0 == t ) { return 1; }
	if( gn <= p ) { return 0; }
	
	int res = solve( p+1, t-gA[p] ) || solve( p+1, t ) ;
	
	return res;
}

int main( void ) 
{

    int i;
    int q;
    
    scanf( "%d", &gn );  
	for( i=0; i<gn; i++ ) {
	    scanf( "%d", &gA[i] );
	}   
    scanf( "%d", &q );  
    for( i=0; i<q; i++ ) {
        scanf( "%d", &gM[i] );
    	if( solve( 0, gM[i] ) ) {
    		printf( "yes\n" );    	
    	} else {
    		printf( "no\n" );
    	}
    }
 
    return 0;
}