#include <stdio.h>
#include <stdlib.h>
#define FALSE 0
#define TRUE 1
#define N 2000
int *A, *m;
int n,q;
int solve(int,int);
int main(){
  int i;
  scanf("%d",&n);
  if(n > 20)
    exit(1);
  A = (int*)malloc(sizeof(int) * n);
  for(i = 0; i < n; i++){
    scanf("%d",&A[i]);
    if(A[i] > N)
      exit(1);
  }
  
  scanf("%d",&q);
  if(q > 200)
    exit(1);
  m = (int*)malloc(sizeof(int) * q);
  for(i = 0; i < q; i++){
    scanf("%d",&m[i]);
    if(m[i] > N)
      exit(1);
  }
  
  for(i = 0; i < q; i++){
    if(solve(0,m[i]))
      printf("yes\n");
    else
      printf("no\n");
  }
  
  return 0;
  }

int solve(i,m){
  if(m == 0)
    return TRUE;
  if(i >= n)
    return FALSE;
  int res = solve(i + 1, m) || solve(i + 1, m - A[i]);
  return res;
}

