#include <stdio.h>
#include <stdlib.h>

int sums(int n, int ans, int *A);

int main()
{
    int n,m,i,con;
    int A[2000] = {0};
    int B[2000] = {0};

    scanf("%d",&n);

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

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

    for (i=0; i<m; i++) {
        con = sums(n,B[i],A);
        if (con) printf("yes");
        else printf("no");

        printf("\n");
    }

    return 0;
}

int sums(int n, int ans, int *A) {
    int t,s;

    if (n == 0) {
        if (ans == 0) return 1;
        else return 0;
    }

    //if (A[n-1] > ans) return 0;

    if (A[n-1] == ans) return 1;

    t = sums(n-1,ans,A);
    s = sums(n-1,ans-A[n-1],A);

    return (t || s);
}
