#include<stdio.h>
#include<stdlib.h>


//prototype
int judge(int,int);


//global
int *data, data_n;

int main(){
  int *mihon, mihon_n;
  int i;

  
  //input
  scanf("%d",&data_n);
  data=(int *)malloc(sizeof(int)*data_n);
  for(i=0;i<data_n;i++) scanf("%d",&data[i]);
  scanf("%d",&mihon_n);
  mihon=(int *)malloc(sizeof(int)*mihon_n);
  for(i=0;i<mihon_n;i++) scanf("%d",&mihon[i]);


  //judge
  for(i=0;i<mihon_n;i++){
    if(judge(0,mihon[i])==1) printf("yes\n");
    else printf("no\n");
  }
  
  
  free(data);
  free(mihon);
  return 0;
}


//input i&m  output 1/0
int judge(int i, int m){
  int res;
  
  if(m==0) return 1;
  else if(i>=data_n) return 0;
  res=judge(i+1,m)||judge(i+1,m-data[i]);
  return res;

}

