#include <stdio.h>

int n, A[100];
int solve(int i, int m);

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

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

