#include <stdio.h>
//-----------------------------------------------------define--------------------------------------------------------------------//
#define PB push_buck
#define MP make_pair
#define MAX 100000
//-------------------------------------------------------typedef----------------------------------------------------------------//
typedef long long ll;

using namespace std;

int n, q;
int a[50], m;
//------------------------------------------------------------------------------------------------------------------------------//
int solve(int i,int m) {
	if (m == 0) {
		return 1;
	}
	else if (i >= q) {
		return 0;
	}
	int ans = (solve(i + 1, m) || solve(i + 1, m - a[i]));
	return ans;
}

int main() {
	scanf("%d", &n);
		for (int j = 0; j < n; j++) {
		scanf("%d", &a[j]);
	}
		scanf("%d", &q);
	for (int i = 0; i < q; i++) {
		scanf("%d", &m);
		if (solve(0,m)) {
			printf("yes\n");
		}
		else {
			printf("no\n");
		}
	}
}