#include <stdio.h>

int solve(int i,int *a,int n,int q){
  int res=0;
  
  if(q==0)return 1;
  if(i>=n)return 0;
  return res = solve(i+1,a,n,q) || solve(i+1,a,n,q-a[i]);
}

int main(){
  int n,i,m,j,k;
  int a[20],q[200];
  
  scanf("%d",&n);
  for(i=0;i<n;++i){
    scanf("%d",&a[i]);
  }
  scanf("%d",&m);
  for(j=0;j<m;j++){
    scanf("%d",&q[j]);
  }

  for(k=0;k<m;k++){
    if(solve(0,a,n,q[k]))printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

