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

int first_array[20], first_array_size;

int calc(int a, int b) {
	if (b == 0) return 1;
	if (a >= first_array_size) return 0;
	int reply = calc(a + 1, b) || calc(a + 1, b - first_array[a]);
	return reply;
}

int main() {
	int i, second_array_number, second_array_size;
	scanf("%d", &first_array_size);

	for (i = 0; i < first_array_size; i++) {
		scanf("%d", &first_array[i]);
	}

	scanf("%d", &second_array_size);

	for (i = 0; i < second_array_size; i++) {
		scanf("%d", &second_array_number);
		if (calc(0, second_array_number)) printf("yes\n");
		else printf("no\n");
	}

	return 0;
}
