#include <stdio.h>

int A[2000],n;

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




int main()
{
  int m,i,q;

  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);
      if(answer(0,m)) printf("yes\n");
      else printf("no\n");
    }
  return 0;
}

