#include<stdio.h>
#define T 1
#define F 0
int solve(int,int,int,int *);
int main(){
  int i,n,q;
  scanf("%d",&n);
  int A[n];
  for(i=0;i<n;i++) scanf("%d",&A[i]);
  scanf("%d",&q);
  int M[q];
  for(i=0;i<q;i++) scanf("%d",&M[i]);
  for(i=0;i<q;i++){   
    if(solve(0,M[i],n,A) == T) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}
int solve(int i,int m,int n,int *A){
  if(m==0) return T;
  if(i>=n) return F;
  int res = solve(i+1,m,n,A)||solve(i+1,m-A[i],n,A);
  return res;
}
