#include <iostream>
using namespace std;

int main() {
	int n, a, q, m;
	cin >> n;

	bool dp[2001] = {true, false};
	for (int i=0; i<n; ++i) {
		cin >> a;
		for (int j=2000; j>=0; --j) {
			dp[j+a] |= (dp[j] && j+a<2001);
		}
	}

	cin >> q;
	for (int i=0; i<q; ++i) {
		cin >> m;
		cout << (dp[m] ? "yes" : "no") << endl;
	}
}