#include<stdio.h>

int solve(int,int);

int n,a[2000];

main(){
  int q,m[2000];
  int i,p=0,res;

  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]);
    res = solve(p,m[i]);
    if(res == 1) 
      printf("yes\n");
    else 
      printf("no\n");    
  }
  return 0;
}

int solve(int p,int t){ 
  if(t == 0) return 1;
  if(p == n) return 0;
  if(solve(p+1,t) == 1)return 1;
  if(solve(p+1,t-a[p]) == 1) return 1;
  return 0;    
}