#include <stdio.h>
#define SIZE 25

int solve(int,int);
int A[SIZE],a;
int main()
{
  int i,B[205],b,heaven;
  scanf("%d",&a);
  for(i=0;i<a;i++)
    {
      scanf("%d",&A[i]);
    }
   scanf("%d",&b);
  for(i=0;i<b;i++)
    {
      scanf("%d",&B[i]);
    }
  for(i=0;i<b;i++)
    {
      heaven=solve(0,B[i]);
      if(heaven==0)
	printf("no\n");
      else
	printf("yes\n");
    }
  return 0;
}

int solve(int count,int tar)
{
  int result;  
  if(tar==0)
    return 1;
  if(count > a)
    return 0;
  result=solve(count+1,tar)+solve(count+1,tar-A[count]);
  return result;
}

