#include <stdio.h>
#define MAX 2001
int useornouse(int,int);
int youko1,haire1[MAX];
int main()
{
  int youko2,haire2[MAX],i,j,k=1,youcou=1,han;
  scanf("%d",&youko1);
  for(i=1;i<=youko1;i++)
    {
      scanf("%d",&haire1[i]);
    }
  scanf("%d",&youko2);
  for(j=1;j<=youko2;j++)
    {
      scanf("%d",&haire2[j]);
    }
  while(k<=youko2)
    {
      han=useornouse(youcou,haire2[k]);
      if(han==1)
	{
	  printf("yes\n");
	}
      else
	{
	  printf("no\n");
	}
      k++;
    }
  return 0;
}

int useornouse(int youcou,int nokori)
{
  int yesno;
  if(nokori==0)
    {
      return 1;
    }
  if(youcou>youko1)
    {
      return 0;
    }
  //printf("%d\n",youcou);
  //printf("%d\n",nokori);
  yesno=(useornouse(youcou+1,nokori-haire1[youcou])||useornouse(youcou+1,nokori));
  //yesno=useornouse(youcou+1,nokori);
  return yesno;
}

/*
//printf("100\n");
while(l<=youko1)
{
//printf("100\n");
// printf("%d %d\n",l,haire2[k]);
if(haire2[k]==haire1[l])
{
//printf("100\n");
break;
}
else
{
l++;
}
}
*/

