#include<stdio.h>

int esearch(int, int );
int sumdata;
int sumquestion;
int data[20];
int question[200];
int main(){

  int i,answer;

  scanf("%d",&sumdata);

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

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

  }

  scanf("%d",&sumquestion);

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

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

  }

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

    answer = esearch(0,question[i]);

    if(answer >= 1){

      printf("yes\n");

    }
    
    else{

      printf("no\n");

    }
  }
return 0;


}

int esearch(int x, int y){

  int answer;


  if(y == 0) {

    return 1;
  }

  else if(x >= sumdata){

    return 0;

  }


  answer = esearch( x + 1, y) || esearch(x + 1, y - data[x]);

  return answer;

}