#include<stdio.h>
void  solve(int , int);
int n , q , a[2000] , m[2000];
int i,j,judge[2000];
int main()
{
  

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

  scanf("%d",&q);
  for(j = 0 ; j < q ; j++)
    scanf("%d",&m[j]);

  for(i = 0 ; i < q ; i++)
    {
      solve(0 , m[i]);
      //printf("i = %d\n",i);
    }

  for(i = 0 ; i < q ; i++)
    {
      if(judge[i] == 1)printf("yes\n");
      else printf("no\n");
    }

  return 0 ; 
}

void  solve( int d,int s)
{
  //  int res;
  if(s == 0)judge[i] = 1;// {printf("loop finish\n");return  1;}
  else if(s > 0 && d < n)
    {
      solve(d+1 , s-a[d]);
      solve(d+1 , s);
      }
  //printf("loop finish\n");



  // if(d >=  n)return 0;
  //res = solve(d + 1,s) || solve( d +1 , s - a[d]);

}