#include<stdio.h>

int solve(int *, int, int, int);

int main(){
  int i, j, n, q, A[20], m[200], ans;
  scanf("%d", &n);
  if(n > 0 && n <= 20){
    for(i = 0; i < n; i++){
      scanf("%d", &A[i]);
    }
    scanf("%d", &q);
    if(q > 0 && q <= 200){
      for(i = 0; i < q; i++){
	scanf("%d", &m[i]);
      }

      for(i = 0; i < q; i++){
	ans = solve(&A[0], m[i], n, 0);
	if(ans == 1){
	  printf("yes\n");
	}else{
	  printf("no\n");
	}
      }
      
    }
  }
  return 0;
}

int solve(int *A, int m,  int n, int i){
  int res;
  if(m == 0){
    return 1;
  }
  if(i >= n){
    return 0;
  }

  res = solve(&A[0], m, n, i + 1) || solve(&A[0], m - A[i], n, i + 1);
  return res;  
}




