#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<time.h>
#include<math.h>
int A[30],n;
int solve(int M,int sum,int degree)
{
	if(M==sum)
		return 1;
	if(degree>n)
		return 0;
	if(solve(M,sum,degree+1))
		return 1;
	return solve(M,sum+A[degree],degree+1);
}
int main()
{
	int q,m[210],i;
	scanf("%d",&n);
	for(i=1;i<=n;i++)
		scanf("%d",&A[i]);
	scanf("%d",&q);
	for(i=1;i<=q;i++)
		scanf("%d",&m[i]);
	for(i=1;i<=q;i++)
	{
		if(solve(m[i],0,1))
			printf("yes\n");
		else
			printf("no\n");
	}
	return 0;
}
