#include<stdio.h>
#define N 20
int solve(int , int );

int n,A[100*N];

int main()
{
  int i,q,m[10*N],sum,hantei;
  
  while(1)
    {
      scanf("%d",&n);
      if(n<=N) break;
    }

  i=0;
  while(i<n)
    {
      scanf("%d",&A[i]);
      if(A[i] >= 1 && A[i] <= 100*N) i++;
    }

  while(1)
    {
      scanf("%d",&q);
      if(q<=10*N) break;
    }

  i=0;
  while(i<q)
    {
      scanf("%d",&m[i]);
      if(m[i] >= 1 && m[i] <= 100*N) i++;
    }
  for(i=0;i<q;i++)
    {
      sum = m[i];
      hantei = solve(0,sum);
      if(hantei == 1) printf("yes\n");
      else printf("no\n");
    }
      
  return 0;
}


int solve(int i, int m)
{
  int res;
  if(m == 0) return 1;
  if (i >= n) return 0;
  if(solve(i+1,m) || solve(i+1,m-A[i])) res = 1;
  else res = 0;
  return res;
}
  

