#include<stdio.h>
#include<string.h>
int A[200];
int solve ( int N, int i, int m ) {
    int ans;
    if ( m == 0 ) return 1;
    if ( i >= N ) return 0;
    ans = solve( N, i + 1, m ) || solve( N, i + 1, m - A[i] );
    return ans;
}
int main(void){
    int n, q, M[2000], i, j;
    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( solve( n, 0, M[i]) ) printf("yes\n");
        else printf("no\n");
    }
    return 0;
}