#include<stdio.h>
#include<stdlib.h>
int solve(int i,int m);
int n,*A;
int main(){
  int *S,i,q,count=0,result;
 scanf("%d\n",&n);
  A=(int *)malloc(n*sizeof(int));
  for(i=0;i<n;i++){
    scanf("%d",&A[i]);
  }
  scanf("%d\n",&q);
  S=(int *)malloc(q*sizeof(int));
  for(i=0;i<q;i++){
    scanf("%d",&S[i]);
  }


  for(i=0;i<q;i++){
    result=solve(0,S[i]);
    if(result==1) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}
int solve(int i,int m){
  int res;
  //printf("%d %d\n",i,m);
  if(m==0) return 1;
  if(i>=n) return 0;
  res=solve(i+1,m)||solve(i+1,m-A[i]);
  return res;
}

