#include <stdio.h>

int rec( int i, int sum, int* A, int l ){

    int res;
    int a, b;
    

    // nothing to add
    if( i > l ){ res = 0;
    }


    // no more space
    else if( sum == 0 ){ res = 1;
    }

    else if( sum < A[i] ) res = rec( i+1, sum, A, l );

    //
    else {

        a = rec( i+1, sum-A[i], A, l );
        b = rec( i+1, sum, A, l );
        res = b + a;

    }
        
    return res;

}



int main(){

    int i;
    int n, q;
    int A[21], M[201];
    int sum;

    scanf( "%d", &n );
    for( i=0; i<n; i++) scanf( "%d", &A[i] );
    scanf( "%d", &q );
    for( i=0; i<q; i++) scanf( "%d", &M[i] );

    for( i=0; i<q; i++ ){
        if(rec( 0, M[i], A, n)>0)
            printf( "yes\n" );
        else
            printf( "no\n" );

    }
           
    return 0;
}
