#include <stdio.h>


int n,A[20];

int sum(int , int );
int main()
{
  int q,m[200];
  int i;

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

  scanf("%d",&q);
  for(i=0;i<q;i++)
    {
      scanf("%d",&m[i]);
      if(sum(0,m[i])) printf("yes\n");
      else printf("no\n");
    }
  return 0;
}

int sum(int x,int y)
{
  if(x>=n)return 0;
  if(A[x]==y)return 1;
  if(sum(x+1,y)) return 1;
  if(sum(x+1,y-A[x]))return 1;
  return 0;
}

