#include <stdio.h>

int n, res;

int solve(int i, int *a, int m){
  if(m == 0)
    return 1;
  if(i >= n)
    return 0;
  res = solve(i+1, a, m) || solve(i+1, a, m-a[i]);
  return res;
}

int main(){

  int i, q;

  scanf("%d", &n);
  int a[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++){
    res = solve(0, a, m[i]);
    if(res == 1) printf("yes\n");
    else printf("no\n");
  }

  return 0;
}