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

int solve(int,int);

int n,q;
int *A,*m;

int main()
{
  int i;
  int x;
  
  //入力
  scanf("%d",&n);
  A = (int *)malloc( n * sizeof(int));

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

  scanf("%d",&q);
  m = (int *)malloc( q * sizeof(int));
  
  for(i=0;i<q;i++){
    scanf("%d",&m[i]);
  }

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

  free(A);
  free(m);
  return 0;
}

int solve(int i,int m)
{
  int res;
  if(m == 0) {
    // printf("yes\n");
    return 1;
  }
  if(i >= n) {
    // printf("no\n");
    return 0;
  }

  res = solve ( i+1 , m ) || solve(i+1 , m-A[i] );
  return res;
}
  

