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

int main( void ) 
{
    int i, j;
    int num;
    int sum;
	int isExist[ MMAX+1 ] = {0};    

    scanf( "%d", &n );
    sum = 0;
    for( i=0; i<n; i++ ) {
        scanf( "%d", &num );
        isExist[ num ] = 1;
        sum += num;
        A[i] = num;
        for( j=MMAX; 0<j; j-- ) {
        	if( isExist[ j ] ) {
        		isExist[ j+num ] = 1;
        	}
        }
    }
    scanf( "%d", &q );
    for( i=0; i<q; i++ ) {
        scanf( "%d", &num );
    	if( isExist[ num ] ) {
            printf( "yes\n" );      
        } else {
            printf( "no\n" );
        }
    }

    return 0;
}