#include <stdio.h>
#include <stdlib.h>

int solve(int,int);	
int a[2000],b[2000],N,M,x=0;
int main (){



	scanf("%d",&N);
	for (int i = 0; i < N; i++)
	{
		scanf("%d",&a[i]);
	}
	scanf("%d",&M);
	for (int i = 0; i < M; i++)
	{
		scanf("%d",&b[i]);
	}


	for (int i = 0; i < M; ++i)
	{
		if(solve (x,b[i]) == 1) printf("yes\n");
		else printf("no\n");
	}


	return 0;
}

int solve(int i,int m){

	int res;

	if (m == 0)
		return 1;
	if (i >= N)
		return 0;
	res = solve(i + 1, m) || solve(i + 1, m - a[i]);
	return res;

}