#include<stdio.h>

int atari(int,int);
int n,h;
int X[2000],Y[2000];

main(){
  int i,j;
  

  scanf("%d",&n);
  for(i = 0; i < n; i++)
    scanf("%d",&X[i]);

  scanf("%d",&h);
  for(j = 0; j < h; j++)
    scanf("%d",&Y[j]);
    
  
  for(j = 0; j < h; j++)
    if(atari(n,Y[j]))
      printf("yes\n");
    else
      printf("no\n");
    
   
     

  return 0;
}

int atari(int v,int m)
{
  int p;
  if(m == X[v])
    return 1;

  if(v == -1)
    return 0;

  if(m <= 0)
    return 0;

  if(atari(v-1,m))
    return 1;

  if(atari(v-1,m-X[v]))
    return 1;

  return 0;
  
}