#include <stdio.h>
int Solve(int,int);


int n,A[2000],q,M[2000];

int main(int argc , char *argv[]){
    int i;
    int tsk=1;
    
    
    
    scanf("%d",&n);
    if(n>20)return 0;
    
    
    
    for(i=0;i<n;i++){
        scanf("%d",&A[i]);
    }
    
    
    scanf("%d",&q);
    if(q>200)return 0;
    
    for(i=0;i<q;i++){
        scanf("%d",&M[i]);
    }
    
    for(i=0;i<q;i++){
        
        if(Solve(0,M[i])){
            printf("yes\n");
        }
        else {
           printf("no\n");
        }
    }

    return 0;
}//ENDmain





int Solve(int p,int N){
    
    if(N==0)return 1;
    if(N<0)return 0;
    if(p>n)return 0;
    
    if(Solve(p+1,N-A[p])==1){
        return 1;
    }
    if(Solve(p+1,N)==1){
        return 1;
    }
    else return 0;
    
}