#include<stdio.h>
int solve(int,int);
int n,A[2000];
int main(){
  int q,m[2000],i,j=0;
  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(i=0;i<q;i++){
    if(solve(j,m[i])==0) printf("yes\n");
    else printf("no\n");
    
  }

  return 0;
}

int solve(int j,int m){
  int res;
  //printf("%d\n",m);
  if(m==0) return 0;
  else if(j>n) return 1;
  
  if((solve(j+1,m-A[j])==0) || (solve(j+1,m)==0)) res=0;
  else res=1;
  return res;
}

