#include<iostream>
using namespace std;

int a[30],n;

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

int main()
{
	int i, q, o;
	cin >> n;
	for (i = 0; i < n; i++)
		cin >> a[i];

	cin >> q;
	while (q--)
	{
		cin >> o;
		if (solve(0,o))cout << "yes" << endl;
		else cout << "no" << endl;
	}
	return 0;
}
