#include<stdio.h>

int n,A[2000];

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

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

}
  

int main () {
  int i,j,m,M,res[200];

  scanf("%d",&n);

  for(i=0;i<n;i++){
    scanf("%d",&A[i]);
  }

  scanf("%d",&M);

  for(i=0;i<M;i++){
    scanf("%d",&m);
    res[i] = solve(0,m);
    }

  for(i=0;i<M;i++){
    if(res[i]){
      printf("yes\n");
    }
    else printf("no\n");
  }

  return 0;
}
  

  

