#include <stdio.h>
#define N 21

int i,n,q,A[N],m;

int plus(i,m){
  int x;

  if(m==0) return 1;
  else if(i>=n) return 0;

  x = plus(i+1,m) || plus(i+1,m-A[i]);
  return x;
}

int main(){
  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);

    if(plus(0,m)==1){
      printf("yes\n");
    }
		else{
      printf("no\n");
    }
  }

  return 0;
}

