#include <stdio.h>

#define MAX 2000;
int A[MAX],B[MAX];

int main(void){
  int i,j,k,l,n;

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

  scanf("%d",&j);
  for(k=0;k<q;k++){
    scanf("%d",&B[i]);

  }

  for(l=0;l<q;l++){
    if(!rec(0,B[i])){
      printf("no\n");
    }

  }



  return 0;




}


int rec(int p,int q){
 
  if(q < 0){
    return 0;
  }
  else if(q==0){
    printf("yes\n");
    return 1;
  }

  if(p >= n)return 0;
  if(rec(p+1,q-A[p]))return 1;
  if(rec(p+1,q)) return 1;

  return 0;

 
}