#include<stdio.h>

int n,q,mi;
int A[2000];

int solve(int j,int m);

int main(void){
	scanf("%d",&n);
	int i;
	for(i=0;i<n;i++){
		scanf("%d",&A[i]);
		}
	scanf("%d",&q);
	for(i=0;i<q;i++){
		scanf("%d",&mi);
		if(solve(0,mi)) printf("yes\n");
		else printf("no\n");
		}
	return 0;
}
		
int solve(int j,int m){
	if(m==0) return 1;
	if(j>=n) return 0;
	int judge=solve(j+1,m)||solve(j+1,m-A[j]);
	return judge;
}
