#include<stdio.h>

int sol(int,int);

int A[2000],m[2000],n;
int main(){
  int q,judge,i,j;
  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++){  
    judge=sol(0,m[i]);
    if(judge==1) printf("yes\n");
    if(judge==0) printf("no\n");
  }

  return 0;
}

int sol(int i,int m){
  int res,j;
  if(m==0) return 1;
  if(i>=n) return 0;
 
  res=sol(i+1,m-A[i]) || sol(i+1,m);

  return res;
  
  
}

  
    

  

