#include<stdio.h>

int A[2000],n;

int solve(int,int);

int main(){
  int x,m,q;
  int i;

  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);
    x = solve(0,m);
      if(x != 0) printf("yes\n");
      else printf("no\n");
  }
  return 0;
}

int solve (int t,int s){
  int y;

  if(s == 0) return 1;
  if(t >= n) return 0;
  y = solve(t + 1,s) || solve(t + 1, s - A[t]);
  return y;
}
  
  

