
#include <iostream>
using namespace std;
int n,m,h;
int data[21];
bool solve(int v,int t){

	if(v==h) return true;
	if(v>h || t==n) return false;
	bool ret = solve(data[t]+v,t+1);
	if(!ret) ret = solve(v,t+1);
	return ret;
}
 
int main(){

	cin>>n;
	for(int i=0;i<n;i++){
		cin>>data[i];
	}

	cin>>m;
	for(int i=0;i<m;i++){
		
		cin>>h;
		cout<< (solve(0,0)? "yes" : "no")<<endl;

	}

		return 0;
}