#include<stdio.h>
#include<stdlib.h>
#define mymalloc(p,n) {p = malloc((n)*sizeof(*p));if ((p)==NULL) {printf("not enough memory?\n"); exit(1);};}

int max(int i,int j){
	if(i>j){return i;}
	else{return j;}
}

int solve(int *A,int i,int m,int n){
	if(i>n){
		return 0;
	}else{
	if(m-A[i]==0){
		return 1;
	}else{
		return max(solve(A,i+1,m-A[i],n),solve(A,i+1,m,n));
 	}}
}

main(){
	int i,n,q,*A,m;
	scanf("%d",&n);
	mymalloc(A,n);
	for(i=0;i<n;i++){
		scanf(" %d",&A[i]);
	}
	scanf(" %d",&q);
	for(i=0;i<q;i++){
		scanf(" %d",&m);
		if(solve(A,0,m,n-1)==1){
			printf("yes\n");
		}
		else{
			printf("no\n");
		}
	}
	return 0;
}