#include<stdio.h>
#define N 2000
int solve(int,int,int);
int A[N],B[N];

int main(){
  int i,m,n;
  scanf("%d",&n);
  for(i = 0;i < n;i++){
    scanf("%d",&A[i]);
  }
  scanf("%d",&m);
  for(i=0;i<m;i++){
    scanf("%d",&B[i]);
  }
  for(i = 0;i < m;i++){
    if(solve(0,B[i],n)==1){
      printf("yes\n");
      }
    else{
      printf("no\n");
	}
    }
  return 0;
}

int solve(int i,int m,int n){
  int r;
  if(m==0) return 1;
  if(i >= n) return 0;
  r = (solve(i+1,m,n)||solve(i+1,m-A[i],n));
  return r;
}