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

#define N 2000

int judge(int, int);
int n, a[N];

int main(){
  int i, q, m[N];

  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]);

    if(judge(0, m[i]) == 0)
      printf("no\n");

    else printf("yes\n");
  }

  return 0;
}

int judge(int i, int m){
  int calc;
  if(m == 0)
    return 1;

  else if(i >= n)
    return 0;

  calc = judge(i + 1, m) || judge(i + 1, m - a[i]);
  return calc;
}
