#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

void insertionSort(int A[], int N) {
	int i;
	int v;
	int j;

	for (i = 1; i < N; i++) {
		v = A[i];
		j = i - 1;
		while (0 <= j && v < A[j]) {
			A[j + 1] = A[j];
			j--;
		}
		A[j + 1] = v;
	}
}

void getAns(int n, int A[], int Ans[], int Ans2[]) {
	Ans[0] = 1;
	int i, j;
	for (j = 0; j < n; ++j) {
		for (i = 0; i < 2001; ++i) {
			if (Ans[i] == 1) {
				if (i + A[j] <= 2000) {
					Ans2[i + A[j]] = 1;
				}
			}
		}
		for (i = 0; i < 2001; ++i) {
			if (Ans2[i] == 1) {
				Ans[i] = 1;
			}
		}
	}
}

int main() {
	int n;
	int A[20];
	int Ans[2001];
	int Ans2[2001];
	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);
	}
	insertionSort(A, n);

	getAns(n, A, Ans, Ans2);

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


	return 0;
}