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