#include<stdio.h>

int n, m, A[20];

int solve(int p, int sum){
  int res;
  if(sum == 0)
    return 1;
  if(p >= n)
    return 0;
  res = solve(p+1, sum) || solve(p+1, sum - A[p]);
  return res;
}

int main(void){
  int i, q, goal;
  scanf("%d", &n);
  for(i=0;i<n;i++)
    scanf("%d", &A[i]);
  scanf("%d", &q);
  for(i=0;i<q;i++){
    scanf("%d", &goal);
    if(solve(0, goal))
      printf("yes\n");
    else
      printf("no\n");
  }
  return 0;
}