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

#define TRUE 1
#define FALSE 0

int solve(int, int);
int n;
int *a;

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

  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++) {
    if(solve(0, m[i]) == TRUE)
      printf("yes\n");
    else
      printf("no\n");
  }
  return 0;
}

int solve(int i, int m)
{
  if(m == 0)
    return TRUE;
  else if(i >= n)
    return FALSE;

  return solve(i+1, m) || solve(i+1, m-a[i]);
}