#include <iostream>
using namespace std;
const int MAX_N = 20;
int n;
int A[MAX_N];

bool solve(int i, int M) {
	if (i == n) return false;
	if (M - A[i] == 0) return true;
	if (M - A[i] < 0) return solve(i + 1, M);
	return solve(i + 1, M) || solve(i + 1, M - A[i]);
}

int main () {
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> A[i];
	}
	int q;
	cin >> q;
	for (int i = 0; i < q; i++) {
		int M;
		cin >> M;
		cout << (solve(0, M) ? "yes" : "no") << endl;
	}
	return 0;
}