//By Vlgd
#include<bits/stdc++.h>
using namespace std;
int A[20],n,q,x;
bool f(int m,int i){
	if(m==0) return true;
	if(i>=n) return false;
	return f(m,i+1)||f(m-A[i],i+1);
}
int main(){
	scanf("%d",&n);
	for (int i=0;i<n;i++) scanf("%d",&A[i]);
	scanf("%d",&q);
	for (int i=0;i<q;i++){
		scanf("%d",&x);
		if(f(x,0)) printf("yes\n");
		else printf("no\n");
	}
}
