#include <stdio.h>
#include <stdlib.h>
#define true 1
#define false 0
int solve(int,int);
int n, q, *A, *m;

int main()
{
  int i;
  
  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"); 
    if(solve(0,m[i]) == false) printf("no\n"); }

  free(A);
  free(m);

  return 0;
}

int solve(int i, int m)
{
  int res1, res2, res;
  
  if(m == 0) return true;
  
  if(i >= n) return false;

  res1 = solve(i + 1, m);
  res2 = solve(i + 1, m-A[i]);

  if(res1 == true || res2 == true){
    if(res1 == true) res = res1;
    if(res2 == true) res = res2;
    return res; }
  else{
    res = false;
    return res; }
}

