#include <stdio.h>
#include <stdlib.h>

void print(int *,int *,int,int);
int Calc(int,int,int,int *);

int main()
{
  int n1,*A,n2,*Q,i;
  
  scanf("%d",&n1);

  A = (int *)malloc(n1 * sizeof(int));

  for(i=0;i<n1;i++){
    scanf("%d",&A[i]);
  }

  scanf("%d",&n2);

  Q = (int *)malloc(n2 * sizeof(int));

  for(i=0;i<n2;i++){
    scanf("%d",&Q[i]);
  }

  print(A,Q,n2,n1);
  
  free(A);
  free(Q);

  return 0;
}

void print(int *A,int *Q,int n2,int n1)
{
  int i;
  
  for(i=0;i<n2;i++){
    if(Calc(0,Q[i],n1,A)==0) printf("no\n");
    else printf("yes\n");
  }
}

  
int Calc(int i,int Q,int n1,int *A)
{
  int res;
  
  if(Q==0) return 1;
  if(i>=n1) return 0;

  res = Calc(i+1,Q,n1,A)+Calc(i+1,Q-A[i],n1,A);

  return res;
}

