#include <stdio.h>


int main() {

    int A[20];
    int B[200];
    int i,j,k;
    int n,q;
    int dp[20+1][2000] = {0};

    scanf("%d", &n);
    for (i = 0; i < n; ++i){
        scanf("%d", &A[i]);
    }

    scanf("%d", &q);
    for (i = 0; i < q; ++i){
        scanf("%d", &B[i]);
    }

    dp[0][0] = 1;

    for (k = 0; k < q; ++k) {
        for (i = 0; i < n; ++i) {
            for (j = 0; j <= B[k]; ++j) {
                dp[i + 1][j] |= dp[i][j];
                if (j >= A[i]) {
                    dp[i + 1][j] |= dp[i][j - A[i]];
                }

            }
        }

    }
    for (k = 0; k < q-1; ++k){
        if (dp[n][B[k]]){
            printf("yes\n");
        }
        else{
            printf("no\n");
        }
    }
    if (dp[n][B[q-1]]){
        printf("yes\n");
    }
    else{
        printf("no\n");
    }

}
