#include <stdio.h>
#define N 2000

int A[N], n;
int solve(int i, int m)
{
    int res;
    if(m == 0) return 1;
    if(i >= n) return 0;
    res = solve(i + 1, m) || solve(i + 1, m - A[i]);
    return res;
}

int main(void)
{
    int q, j, m;
    scanf("%d", &n);
    for(j=0; j<n; j++) scanf("%d", &A[j]);
    scanf("%d", &q);
    for(j=0; j<q; j++){
            scanf("%d", &m);
            if(solve(0,m)) printf("yes\n");
            else printf("no\n");
    }
    return 0;
}
