#include<stdio.h>

int solve(int a[], int size, int p, int m)
{
  if(m == 0){
    return(0);
  }

  if((size <= p) || (m < 0)){
    return(1);
  }else{
	  if(solve(a, size, p + 1, m - a[p]) == 0){
		  return(0);
	  }else if(solve(a, size, p + 1, m) == 0){
		  return(0);
	  }
  }
  return(1);
}

void intAryScan(int b[], int size)
{
  int i;
  for(i = 0; i < size; i++){
    scanf("%d", &b[i]);
  }
  return;
}

int main()
{
  int n, q, i;
  int A[20], M[200];

  scanf("%d", &n);
  intAryScan(A, n);
  scanf("%d", &q);
  intAryScan(M, q);

  for(i = 0; i < q; i++){
	  if(solve(A, n, 0, M[i]) == 0){
		  printf("yes\n");
	  }else{
		  printf("no\n");
	  }
  }

  return(0);
}