#include <stdio.h>

int search(int , int);
int array[20],num1;
int main(){
  int i,num2,key;

  scanf("%d",&num1);
  for(i=0;i<num1;i++){
    scanf("%d",&array[i]);
  }
  scanf("%d",&num2);
  for(i=0;i<num2;i++){
    scanf("%d",&key);
    if(search(0,key)==1) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}
      
int search(int i, int key){
  int num;
  if(key==0) return 1;  /*found*/
  if(i>=num1) return 0;  /*not found*/
  
  num=search(i+1,key-array[i]) || search(i+1,key);/*choice element i or not*/
  return num;
}
				
				

