#include<stdio.h>
#define N 20
#define Q 200

int n,a[N];

int makeCombination(int i,int m){
    int r;
    
    if(m == 0) return 1;
    
    if(i >= n) return 0;
    
    r = makeCombination(i + 1,m) || makeCombination(i + 1,m - a[i]);
}

int main(){
    int q,m[Q],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(makeCombination(0,m[i])) printf("yes\n");
        
        else printf("no\n");
    }
    return 0;
}
