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

#define MAX 20

bool solve(int , int);

int A[MAX];
int n;

int main(void) {
  int q, m, i = 0;

  scanf("%d", &n);
  while(i<n) scanf("%d", &A[i++]);
  scanf("%d", &q);

  while(q--) {
    scanf("%d", &m);
    if(solve(0, m)) printf("yes\n");
    else printf("no\n");
  }

  return 0;
}

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 - A[i]);
  return res;
}

