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

int *A;
int n;

#define TRUE 1
#define FALSE 0

int solve(int,int);

int main(){
  int q, m;
  int i, j;
  
  scanf("%d",&n);

  A = (int *)malloc(n * sizeof(int));

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

  scanf("%d",&q);
  for(i=0; i<q; i++){
    scanf("%d",&m);

    if(solve(0,m)==TRUE)
      printf("yes\n");
    else
      printf("no\n");
  }

  free(A);
  return 0;
}

int solve(int i, int m){
  int res;

  if(m==0)
    return TRUE;

  if(i>n)
    return FALSE;

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

