#include <stdio.h>

int solve(int a, int b);

int n;
int A[25];

int main() {
  int q, i;

  scanf("%d", &n);

  for (i = 0; i < n; i++) {
    scanf("%d", &A[i]);
  }

  scanf("%d", &q);

  int M[q];

  for (i = 0; i < q; i++) {
    scanf("%d", &M[i]);
  }

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

int solve(int a, int b) {
  if (b == 0)
    return 1;
  if (a == n)
    return 0;

  return solve(a+1, b) + solve(a+1, b - A[a]);
}

