#include<stdio.h>

int n,q,A[21],m;

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