#include<stdio.h>
#include<stdbool.h>

int a[20]={};
int n;

bool solve(int i, int x){
	bool res;
	if(x==0) return true;
	if(i>=n) return false;
	res = solve(i+1,x) || solve(i+1,x-a[i]);
	return res;
}

int main(){
	int i,q;
	int m;

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

	return 0;
}