#include<stdio.h>
int MakeM(int,int);
int n,A[20];
int main(){
	int m,q,i;


	//input
	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);
		if(MakeM(0,m)==1){
			printf("yes\n");
		}
		else{
			printf("no\n");
		}
	}

	return 0;
}


int MakeM(int num,int data){

	if(num==n)return 0;
	if(A[num]==data)return 1;
	if(A[num]>data)return MakeM(num+1,data);
	return MakeM(num+1,data-A[num]) || MakeM(num+1,data);
}

