#include<stdio.h>

int n;
int a[20];

int dfs(int now,int x,int d){

	if(now == x)
		return 1;
		
	if(now > x || d == n)
		return 0;
	
	if(dfs(now+a[d],x,d+1))
		return 1;
	
	if(dfs(now,x,d+1))
		return 1;
	
	return 0;
}

int main(){
	int i,q,x;
	
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	
	scanf("%d",&q);
	for(i=0;i<q;i++){
		scanf("%d",&x);
		if(dfs(0,x,0))
			printf("yes\n");
		else 
			printf("no\n");
	}
	
	return 0;
	
}
