#include<stdio.h>
#include<stdlib.h>
 
#define MAX 2000
 
int combi(int,int);
int n,A[MAX],q,M[MAX];
 
int main(void){
  int i;
 
  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++){
    if(combi(0,M[i])) printf("yes\n");
    else printf("no\n");
  }
 
  return 0;
}
 
int combi(int m,int i){
  int x;
  if(i==0) return 1;
  if(n<=m) return 0;
  x= combi(m+1,i) || combi(m+1,i-A[m]);
  return x;
}