#include<stdio.h>

int num,X[50];

int cal(int i, int d){
  if(d==0){
    return 1;
  }
  if(i>=num){
    return 0;
  }
  int result = cal(i+1,d) || cal(i+1,d-X[i]);

  return result;
}

int main(){
  int num2,Y,i;

  scanf("%d",&num);

  for(i=0;i<num;i++){
    scanf("%d",&X[i]);
  }
  scanf("%d",&num2);

  for(i=0;i<num2;i++){
    scanf("%d",&Y);
    if(cal(0,Y)){
      printf("yes\n");
    }
      else printf("no\n");
    }

    return 0;
  }

