#include <stdio.h>
#include <stdlib.h>

int n;
int A[20];
int flg[200000];

int check( int x , int sum ){
    if ( x == n ){
        flg[sum] = 1;
        return;
    }
    check(x+1,sum);
    check(x+1,sum+A[x]);
}


int main(){
    
    scanf("%d\n",&n);
    for ( int ix = 0 ; ix < n ; ix++){
        if ( ix == n-1 ) scanf("%d\n",&A[ix]);
        else scanf("%d",&A[ix]);
    }
    check(0,0);
    int q, M;
    scanf("%d\n",&q);
    for ( int ix = 0 ; ix < q ; ix++){
        if ( ix == q-1 ) scanf("%d\n",&M);
        else scanf("%d ",&M);
        if ( flg[M] == 1 ) printf("yes\n");
        else printf("no\n");
    }
    
    
    return EXIT_SUCCESS;
}
