#include <stdio.h>

int solve(int count,int num,int A[],int n)
{
	if(num==0)
	return 1;
	if(count>n||num<0)
	return 0;
	if(solve(count+1,num-A[count],A,n)||solve(count+1,num,A,n))
	return 1;
	return 0;
}
int main(int argc, char *argv[])
{
	int A[20],n,q,m,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);
		if(solve(0,m,A,n))
		printf("yes\n");
		else
		printf("no\n");
	}
	return 0;
}
