#include <stdio.h>

int function(int i, int x, int n, int a[])
{
	int judge;
	//true
	if (x == 0)
		return 1;
	//false
	if (i >= n)
		return 0;
	judge = function(i + 1, x, n, a) || function(i + 1, x - a[i], n , a);
	return judge;
}

int main(void)
{
	int i, n, m, p;
	int a[32];

	scanf("%d", &n);
	for (i = 0; i < n; i++)
		scanf("%d", &a[i]);

	scanf("%d", &m);
	for (i = 0; i < m; i++)
	{
		scanf("%d", &p);
		if (function(0, p, n, a))
			printf("yes\n");
		else
			printf("no\n");
	}

	return 0;
}
