#include <stdio.h>

int all(int a[],int key,int now,int end,int sum)
{
	int x;
	if(sum==key) return 1;
	if(now == end) return 0;
	else
	{
		x=all(a,key,now+1,end,sum+a[now])||all(a,key,now+1,end,sum);
	}
	return x==1;
}


int main()
{
	int n,q,i;
	int a[21],b[201];
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);
	}
	scanf("%d",&q);
	for(i=0;i<q;i++)
	{
		scanf("%d",&b[i]);
		if( all(a,b[i],0,n,0) ) printf("yes\n");
		else printf("no\n");
	}
	return 0;
}
