#include<stdio.h>

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

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