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

int c_makenum(int, int);

int n;
int A[30];

int main(){
  int p, q, i, j;
  int *B;
  
  scanf("%d", &n);
  for(i = 0 ; i < n ; i++){
    scanf("%d", &A[i]);
  }

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

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

int c_makenum(int i, int key){
  int res;
  
  if(key == 0)return 1;
  if(i >= n)return 0;

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

