#include<stdio.h>

int A[20];

int solve(int n, int m, int i){
  if(m == 0) return 1;

  if(m > 0 && i < n){
    if(solve(a, n, m - A[i], i + 1) || solve(a, n, m, i + 1))
      return 1;
  }

  return 0;
}

int main(){
  int n, q, i, B[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",&B[i]);

  for(i = 0; i < q; i++){
    if(solve(n, B[i]), 0) printf("yes\n");
    else printf("no\n");
  }  

  return 0;
}