#include<stdio.h>
 
void solve(int, int);
int A[2000], n, h;
 
int main(){
  int i, q, M[2000];
  scanf("%d", &n);
  for(i = 0; i < n; i++){
    scanf("%d", &A[i]);
  } 
  scanf("%d", &q);
  for(i = 0; i < q; i++){
    scanf("%d", &M[i]);
  } 
  for(i = 0; i < q; i++){
    h = 0;
    solve(0, M[i]);
    if(h == 0)
      printf("yes\n");
    else 
      printf("no\n");
  }
 
  return 0;
}
 
void solve(int p, int t){
  if(t == 0) 
    h = 1;
  else if(p < n){
    solve(p+1, t-A[p]);
    solve(p+1, t);
  }
}