
#include <stdio.h>

int A[20], n;

int rec(int m, int i){
  int x, y;
  if(m == 0) return 1;
  if(i >= n) return 0;
  x = rec(m, i + 1) || rec(m - A[i], i + 1);
  return x;
}

int main(){
  int i, q, m;

  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);
    if(rec(m, 0) == 1) printf("yes\n");
    else if(rec(m, 0) == 0) printf("no\n");
  }

  return 0;
}