#include<stdio.h>

int search(int a[20],int from,int n,int m){
	int judge;
	
	for(int i=from;i<n;i++){
		judge=m-a[i];
		if(judge<0)continue;
		else if(judge==0)return 1;
		else if(from==n)return 0;
		else if(search(a,i+1,n,judge))return 1;
	}
	return 0;
}

int main(void){
	int n,q,m;
	int a[20];
	
	scanf("%d",&n);
	
	for(int i=0;i<n;i++)scanf("%d",&a[i]);
	
	scanf("%d",&q);
	
	for(int i=0;i<q;i++){
		scanf("%d",&m);
		if(search(a,0,n,m))printf("yes\n");
		else printf("no\n");
	}
	
	return 0;
}
