#include <stdio.h>

int solve(int, int, int);
int a[20];

int main(){
  int n, q, i, res, j = 0;
  int m[200];

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

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

  for(i = 0; i < q; i++){
    res = solve(j, m[i], n);

    if(res == 1)
      printf("yes\n");
    else if(res == 0)
      printf("no\n");
  }

  return 0;

}

int solve(int i, int m, int n){
  int re;

  if(m == 0)
    return 1;
  if(i >= n)
    return 0;

  re = solve(i+1, m, n) || solve(i+1, m - a[i], n);
  return re;
}