#include<stdio.h>

int solve(int , int);

int n, str1[200],str2[200];

int main(){
  
  int i, j, k, m;

  scanf("%d",&n);

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

  scanf("%d",&m);

  for( i = 0; i < m; i++){

    scanf("%d", &str2[i]);

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

     
int solve( int i, int m){

  int res;

  if( m == 0) return 1;

  if( i >= n) return 0;

  res = solve( i + 1, m); 
  res = solve( i + 1, m - str1[i]);

  return res;
}