#include<stdio.h>

void solve(int , int);

int n, f, str1[20],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 < n; i++){
    f = 0;

    solve(0,str2[i]); 

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

  }
  return 0;
}

     
void solve( int i, int m){

  if( m == 0) f = 1;

  if( i >= n) f = 0;

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

}