#include<stdio.h>
  
#define AMAX 20
 
int A[AMAX+1];
int n, q;

int solve( int p, int t, int res )
{
	return  ( p <= n ) ? solve( p+1, t-A[p],  !t ) || solve( p+1, t,  !t  ): res;
}

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