#include <stdio.h>
int HANTEI(int,int);
int n,a[2000];

int main(){
  int i,b,c;

  scanf("%d",&n);

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

   scanf("%d",&b);
  
  for(i=0;i<b;i++){
    scanf("%d",&c);
    if(HANTEI(0,c)==0){
      printf("no\n");
    } else{
      printf("yes\n");
    }
  }
  return 0;
  
}

int HANTEI(int i,int m){
  int res;
  if(m==0){
    return 1;
  }
    if(i>=n){
      return 0;
    }
    res=HANTEI(i+1,m)||HANTEI(i+1,m-a[i]);
    return res;
}

