#include <stdio.h>

int main() {
	int addNumber[20];
	int ansNumber[200];
	int needAddN, needAnsN;
	int YorN;
	int i;

	scanf("%d", &needAddN);
	for (i = 0; i < needAddN; i++) {
		scanf("%d", &addNumber[i]);
	}
	scanf("%d", &needAnsN);
	for (i = 0; i < needAnsN; i++) {
		scanf("%d", &ansNumber[i]);
	}

	for (i = 0; i < needAnsN; i++) {
		int addBox;
		addBox = 0;
		YorN = calc(ansNumber[i], addNumber, needAddN, addBox);
		if (YorN = 1) {
			printf("yes");
		}
		else {
			printf("no");
		}
	}

	return 0;
}

int calc (int answer, int* addNumber, int count, int addBox) {
	int trueA;
	if (addBox > answer || count < 0) {
		return -1;
	}

	do {
		count--;
		addBox += addNumber[count];
		if (addBox != answer) {
			trueA = calc(answer, addNumber, count, addBox);
		}
	} while (trueA == -1);

	return 1;
}