#include<stdio.h>
#include<stdlib.h>

#define T 1
#define F 0

int solve(int,int,int,int *);

int main(){

  int i,j=0,n,*N,q,*Q;

  scanf("%d",&n);
  N=(int *)malloc(sizeof(int)*n);
  for(i=0;i<n;i++) scanf("%d",&N[i]);
  scanf("%d",&q);
  Q=(int *)malloc(sizeof(int)*q);
  for(i=0;i<q;i++) scanf("%d",&Q[i]);


  for(i=0;i<q;i++){

  if(solve(j,Q[i],n,N)==T)printf("yes\n");
  else printf("no\n");

  }


  free(N);
  free(Q);

  return 0;
}
int solve(int i,int m,int n,int *A){

  int res;

  if(m==0) return T;
  else if(i>=n) return F;
  res=solve(i+1,m,n,A) || solve(i+1,m-A[i],n,A);
  return res;

}