#include<stdio.h>
#include<stdlib.h>
#define N 20
#define MAX 2000

int n,X[MAX],Y[MAX];
 
int solve( int , int );


main(){
  
  int i,j,q;

  scanf("%d",&n);
  if( N < n )
    exit(1);
  
  for( i = 0 ; i < n ; i++ ){
    scanf("%d",&X[i]);
  }

  scanf("%d",&q);
  if( N < q )
    exit(2);
  for( i = 0 ; i < q ; i++ ){
    scanf("%d",&X[i]);
  }

  for( i=0 ; i < q ; i++ ){
    if( solve( 0,Y[i] ) )
      printf("yes\n");
    else printf("no\n");
  }
  
  return 0;

}

int solve( int a , int b ){
 
  if(X[a] == b)return 1;
 
  if(a+1  == n)return 0;
 
  if( solve(a+1,b-X[a]) || solve(a+1,b) )
    return 1;
  
  return 0;
 
}