#include <stdio.h>
#define MAX 20
int Combination(int *,int,int,int);

int main()
{
    int a,b;
    int num,res;
    int i;
    int A[MAX];

    scanf("%d",&a);
    for(i=0;i<a;i++)
    {
        scanf("%d",&A[i]);
    }
    scanf("%d",&b);
    for(i=0;i<b;i++)
    {
        scanf("%d",&num);
        if(Combination(A,a,num,0)) printf("yes\n");
        else printf("no\n");
    }
    return 0;
}

int Combination(int *A,int a,int num,int i)
{
    int res;
    if(num==0) return 1;
    if(i>=a) return 0;
    res=Combination(A,a,num,i+1) || Combination(A,a,(num-A[i]),i+1);
    return res;
}
