#include <stdio.h>

int serch(int ,int );

int n,A[20];

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

  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(serch(0,m)) printf("yes\n");
      else printf("no\n");
    }
  return 0;
}
int serch(int a,int b)
{
  int ab;
  if(b == 0) return 1;
  if(a >= n) return 0;

  ab = serch(a + 1,b - A[a]) || serch(a + 1,b);
  return ab;
}
  
  
  
  

