#include<stdio.h>
#include<stdlib.h>
#define N 2000

int A[N],n;

int solve(int n,int A[],int i,int B)
{
  int res;
  if(B==0) return 1;

  else if(m >= n) return 0;

  return (solve(n,A,i+1,B) || solve(n,A,i+1,B-A[i]));
}

int main()
{
  int i,j,m,B[200],sum;

  scanf("%d",&n);
  if(n > 20) exit(3);
  for(i=0; i<n; i++){
    scanf("%d",&A[i]);
  }

  scanf("%d",&m);  
  for(j=0; j<m; j++){
    scanf("%d",&B[j]);    
  }

  for(i=0; i<m; i++){
    sum = solve(n,A,0,B[i]);
    if(sum == 1) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

