#include <stdio.h>
 
int solve(int, int);
 
int n, q, A[20];
int s[21][2001];
 
int main(void)
{
    int i, j, k, m;
     
    scanf("%d",&n);
    for (i=0; i<n; i++) {
        scanf("%d",&A[i]);
    }
    scanf("%d",&q);
     
    for(j=0; j<n; j++) {
        for(k=0; k<2001; k++) {
            s[j][k] = -1;
        }
    }
     
    for (i=0; i<q; i++) {
        scanf("%d",&m);
        if( solve(0,m) ) {
            printf("yes\n");
        } else {
            printf("no\n");
        }
    }
     
    return 0;
}
 
int solve(int i, int m)
{
    if(m==0) return 1;
    if( i==n || m<0 ) return 0;
    if(s[i][m] != -1) return 1;
    s[i][m] = solve(i+1, m) || solve(i+1,m-A[i]);
    return s[i][m];
}