#include <stdio.h>
int A[20],M[200];
int n,q,j,count;

void Solve(int i,int m){
  if(m==0) count=1;
  else if(i!=n){
     Solve(i+1,m);
      Solve(i+1,m-A[i]);
   
  }
}
int main(){
  int i;
  

  scanf("%d",&n);
  for(i=0;i<n;i++) scanf("%d",&A[i]);
  scanf("%d",&q);
  for(i=0;i<q;i++) scanf("%d",&M[i]);
 
 
  for(j=0;j<q;j++){  
    count=0;  
   Solve(0,M[j]);
   if(count==1) printf("yes\n");
   else printf("no\n");
}
  return;
}