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

#define N 2000

int combi(int,int);
int n,A[N],q,M[N];

int main(){
    int i;
    
    scanf("%d", &n);
    for(i=0;i<n;i++) scanf("%d", &A[i]);
    
    scanf("%d", &q);
    for(i=0;i<q;i++) scanf("%d", &M[i]);
    
    for(i=0;i<q;i++){
        if(combi(0,M[i])) printf("yes\n");
        else printf("no\n");
    }
    
    return 0;
}

int combi(int a,int b){
    int x;
    
    if(b==0) return 1;
    
    if(n<=a) return 0;
    
    x= combi(a+1,b) || combi(a+1,b-A[a]);
    
    return x;
}

