#include<stdio.h>
#include<string.h>

int csum(int ,int);

int A[20],n;

int main(){
  int i,j,num,sum = 0,q;
  char display[200][4];

  scanf("%d",&n);

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

  scanf("%d",&q);

  for(i = 0;i < q;i++){
    scanf("%d",&num);
      if(csum(0,num)){
        strcpy(display[i],"yes");
        continue;
      }
      else{
        strcpy(display[i],"no");
        continue;
      }
    }


  for(i = 0;i < q;i++) printf("%s\n",display[i]);
  return 0;
}

int csum(int i,int num){
  int res;
  if(num == 0) return 1;
  if(i >= n) return 0;
  res = csum(i+1,num-A[i]) || csum(i+1,num);
  return res;
}

