#include<stdio.h>

int c1;
int array1[1000];

int exhaustive(int i, int a2){

  if(a2==0){return 1;}
  if(i>=c1){return 0;}

  

  int ans=( exhaustive (i+1,a2) || exhaustive(i+1,a2-array1[i]));
    
    return ans;
}



int main(void){
  
  
  scanf("%d",&c1);
  

  int i;



  
  for(i=0;i<c1;i++){
    scanf("%d",&array1[i]);
  }


  
  int c2;
  scanf("%d",&c2);



  
  int array2;


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


    
    scanf("%d",&array2);

    if(exhaustive(0, array2)) {printf("yes\n");}
    else {printf("no\n");}


   }

 
  
  return 0;
}


