#include <stdio.h>

#define MAX 10000


int solve(int i, int A[], int m, int n )
{
	int res;
	
	if (m == 0) {
		return 1;
	}
	if (i >= n) {
		return 0;
	}
	
	res = solve(i + 1, A, m, n) || solve(i + 1, A, m - A[i], n);
	return res;
}
		

int main()
{
	int n, q, i,j;
	int A[MAX], m[MAX];
	
	scanf("%d",&n);
	for (j = 0; j < n; j++) {
		scanf("%d",&A[j]);
		
	}
	
	scanf("%d",&q);
	for (j = 0; j < q; j++) {
		scanf("%d",&m[j]);
		
	}
	
	for (i = 0; i < q; i++) {
		if (solve(0, A, m[i], n) == 1) {
			printf("yes\n");
		}
		else {
			printf("no\n");
		}
	}
return 0;
}
