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

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

int main(){
  int i,n,q,*A,*m;

  scanf("%d",&n);
  if(n > 20)exit(1);
  A = malloc((n+1) * sizeof(int));
  for(i=0;i < n;i++){
    scanf("%d",&A[i]);
  }
  scanf("%d",&q);
  if(q > 200)exit(3);
  m = malloc(q * sizeof(int));
  for(i=0;i < q;i++){
    scanf("%d",&m[i]);
  }
  for(i=0;i < q;i++){
    if(solve(A,n,0,m[i]))printf("yes\n");
    else printf("no\n");
  }
  
  return 0;  
}

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

