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

int n;
int *arrA;

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

  if(m == 0) return true;
  if(i >= n) return false;

  res = solve(i+1, m) || solve(i+1, m-arrA[i]);

  return res;
}

int main(){
  int q,i,j;
  int *arrm;

  // input and allocation
  scanf("%d",&n);
  arrA = (int *)malloc(sizeof(int) * n);
  for(i=0; i<n; i++) scanf("%d ",&arrA[i]);
  scanf("%d",&q);
  arrm = (int *)malloc(sizeof(int) * q);
  for(i=0; i<q; i++) scanf("%d ",&arrm[i]);

  // solve
  for(i=0; i<q; i++){
    if(solve(0, arrm[i])) printf("yes\n");
    else printf("no\n");
  }

  free(arrA);
  free(arrm);

  return 0;
}