#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int A[20];
int Ans[2001];
int Ans2[2001];
int n;

void getAns() {
	Ans[0] = 1;
	int maxI = 0;
	int maxI2;
	int i, j;
	for (j = 0; j < n; ++j) {
		i = 0;
		while(1){
			if (i > maxI) {
				break;
			}
			if (Ans[i] == 1) {
				if (i + A[j] <= 2000) {
					maxI2 = i + A[j];
					Ans2[maxI2] = 1;
				}
				else {
					break;
				}
			}
			++i;
		}
		maxI = maxI2;
		for (i = 0; i <= maxI; ++i) {
			if (Ans2[i] == 1) {
				Ans[i] = 1;
			}
		}
	}
}

int main() {
	int q;
	int m;
	int i;

	for (i = 0; i < 2001; ++i) {
		Ans[i] = 0;
		Ans2[i] = 0;
	}

	scanf("%d", &n);
	for (i = 0; i < n; ++i) {
		scanf("%d", A + i);
	}

	getAns();

	scanf("%d", &q);
	for (i = 0; i < q; ++i) {
		scanf("%d", &m);
		if (Ans[m]) {
			printf("yes\n");
		}
		else {
			printf("no\n");
		}
	}


	return 0;
}