#include <stdio.h>
#define REP(i, n) for (i=0;i<n;i++)
int n, s;

int solve(int idx, int value, int *A) {
    if (value == 0) return 1;
    if (idx >= n) return 0;

    s = solve(idx+1, value - A[idx], A) || solve(idx+1, value, A);
    return s;
}

int main(void) {
    int q, i, value;
    scanf("%d", &n);
    int A[n];
    REP(i, n) scanf("%d", &A[i]);
    scanf("%d", &q);
    REP(i, q) {
        scanf("%d", &value);
        if (solve(0, value, A)) printf("yes\n");
        else printf("no\n");
    }
    return 0;
}
