#include <stdio.h>

#define TRUE 1
#define FALSE 0
int A1[1000];
int A2[1000];
int n1,n2;

int solve(int i,int m){
    int res;
    //printf("m=%d\n",m);
    if(m==0){
        //printf("True\n");
        return TRUE;
    }
    
    if(i>=n1){
        //printf("False\n");
        return FALSE;
    }
    res=solve(i + 1, m)||solve(i + 1, m - A1[i]);
    //printf("solve(%d + 1, %d)||solve(%d + 1, %d - %d)\n",i,m,i,m,A1[i]);
    return res;
}

int main(){
    int i;
    for(i=0;i<1000;i++){
        A1[i]=0;
        A2[i]=0;
    }
    scanf("%d",&n1);
    
    for(i=0;i<n1;i++)
        scanf("%d",&A1[i]);
    
    scanf("%d",&n2);
    for(i=0;i<n2;i++){
        scanf("%d",&A2[i]);
    }
    
    
    for(i=0;i<n2;i++){
        if(solve(0,A2[i])==TRUE)printf("yes\n");
        else printf("no\n");
    }
    
    return 0;
}