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

int A[20];
int n, q;

int solve(int, int);

int main(){
  int m[200];
  int i, j;
  
  scanf("%d",&n);
  if(n > 20) exit(1);

  for(i=0; i<n; i++){
    scanf("%d",&A[i]);
    if(A[i] < 1 || 2000 < A[i]) exit(2);
  }

  scanf("%d",&q);
  if(q > 200) exit(3);

  for(j=0; j<q; j++){
    scanf("%d",&m[j]);
    if(solve(0, m[j]) == 1) printf("yes\n");
    else printf("no\n");
  }

  return 0;
}

int solve(int i, int mi){
  int r;

  if(mi == 0) return 1;
  if(i >= n) return 0;
  r=solve(i+1, mi) || solve(i+1, mi-A[i]);
  return r;
}


  

