#include <stdio.h>

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

int main(){

  int i,q,m;

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

  return 0;
}

int solve(int A[],int k,int m){
  
  if(m == 0) return 1;
  
  if(k >= n) return 0;

  return solve(A,k + 1, m) || solve(A,k + 1, m - A[k]);
  

}

