#include<stdio.h>
#define NMAX 20
#define QMAX 200
int solve(int,int);
int n,n1[NMAX],q1[QMAX];
int main(){
  int i,j,q;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&n1[i]);
  }
  scanf("%d",&q);
  for(i=0;i<q;i++){
    scanf("%d",&q1[i]);
  }
  for(i=0;i<q;i++){
    if(solve(0,q1[i])==1)
    printf("yes\n");
    else printf("no\n");
  }

  
 

  return 0;
}
int solve(int i,int m){
  if (m==0){
    return 1;
    }
  if(i>=n){
    return 0;
  }
  if( solve(i+1,m)==0 && solve(i+1,m-n1[i])==0)
  return 0;
  else return 1;
  
   
}

