#include <stdio.h>

#define MAX 2000

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

int main(void){

  int n,q,i;
  int A[MAX],M[MAX],S[MAX];

  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++){
    S[i] = solve(A,n,0,M[i]);
    if(S[i] >= 1){
      printf("yes\n");
    }else if(S[i] == 0){
      printf("no\n");
    }
  }
  return 0;
}



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

  res = solve(A,n,i + 1,M) + solve(A,n,i + 1,M - A[i]);
  return res;
}
  

