#include <stdio.h>
#include <stdlib.h>
int solve(int,int,int,int*);
int main(){
  int i,n,q;
  int *A;
  int *m;

  scanf("%d",&n);
  if(n>20) exit(8);
  A = (int *)malloc(n*sizeof(int));
  for(i=0;i<n;i++)
    {
      scanf("%d",&A[i]);
      if(A[i]<1 || A[i]>2000) exit(8);
    }
  scanf("%d",&q);
  if(q>200) exit(8);
  m = (int *)malloc(q*sizeof(int));
  for(i=0;i<q;i++)
    {
      scanf("%d",&m[i]);
      if(m[i]<1 || m[i]>2000) exit(8);
    }
  
  for(i=0;i<q;i++)
    {
      if(solve(0,m[i],n,A) == 1)
	{
	  printf("yes\n");
	  continue;
	}
      printf("no\n");
    }
  return 0;
}
int solve(int i,int m,int n,int *A){
  int res;
  if(m==0) return 1;
  if(i>=n) return 0;
  res = solve(i+1,m,n,A);
  if(res == 1) return res;
  res = solve(i+1,m-A[i],n,A);
  if(res == 1) return res;
  return res;
}
  
  

