#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#define MAX 2000
int A[MAX], M[MAX];

int solve(int a, int b){
	if (b - A[a] == 0){
		return 1;
	}
	if (b - A[a] < 0){
		return 0;
	}
	if (solve(a + 1, b - A[a]) == 1 || solve(a + 1, b) == 1){
		return 1;
	}
	return 0;
}

int main(){
	int a,b,i,j,k,f=0;

	scanf("%d",&a);
	for (i = 0; i < a;i++){
		scanf("%d",&A[i]);
	}
	scanf("%d",&b);

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

	for (i = 0; i < b; i++){
		if (solve(0, M[i])){
			printf("yes\n");
		}
		else{
			printf("no\n");
		}
	}

	return 0;

}