#include<stdio.h>
#include<string.h>
int solve(int i,int n,int *A,int m)  {

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


}




int main(){
  int n,q,i,s,j,m[2000],A[2000];

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

