#include <stdio.h>
int solve(int i,int m);

int A[100];
int n;

int main()
{

  int i;
  int m;
  int c;
  int abc;
  
  scanf("%d",&n);
  for( i = 0; i < n ; i++){
    scanf("%d",&A[i]);
  }
  scanf("%d",&m);
  for( i = 0; i < m ; i++){
    scanf("%d",&abc);
    c = solve(0,abc);
    if(c == 1)  printf("yes\n",c);
    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( res = solve( i + 1, m) || solve( i + 1, m - A[i]))return 1;

    
}



