#include <stdio.h>

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

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

