#include<stdio.h>
#include<stdlib.h>

int Search( int, int );

int n, *A;

int main()
{
  int i, j, q, result, *m;

  scanf("%d", &n);
  A = malloc( n * sizeof(int));
  for( i=0; i<n; i++ ) scanf("%d", &A[i]);

  scanf("%d", &q);
  m = malloc( q * sizeof(int));
  for( i=0; i<q; i++ ) scanf("%d", &m[i]);
  
  for( i=0; i<q; i++ )
    {
      result = Search( 0, m[i] );

      if( result == 1 ) printf("yes\n");
      else if( result == 0 ) printf("no\n");
    }

  return 0;
}


int Search( int i, int m )
{
  int res;

  if( m == 0 ) return 1;
  if( i >= n ) return 0;

  res = Search( i + 1, m ) || Search( i + 1, m - A[i] );

  return res;
}

