#include<stdio.h>

int solve(int,int);

 int S [2000];
 int n;
 int m [2000];

int main(){

  int i,k,j,h;
  int x = 0;
 
    
  scanf("%d",&n);
  
  for(i = 0; i < n; i++){
    scanf("%d",&S[i]);
  }

  scanf("%d",&j);

  for(h = 0; h < j; h++){
    scanf("%d",&m[h]);
      }

  
  
  for(h= 0; h < j; h++){
   k =  solve(x,m[h]);
   if(k == 1){
     printf("yes\n");
   }else if(k == 0){
     printf("no\n");
     
   }
   }
  

  return 0;
}


int solve(int i, int m){

  int res;
  //printf("%d\n",m);
    if(m == 0){
    return 1;
  }else if(i > n){
    return 0;
  }

    if((solve(i+1,m) == 1) || (solve(i+1,m-S[i]) == 1)){
    res = 1;
    return res;
  }else{
    res = 0;
    return res;
  }
}

