#include <stdio.h>
#define N 20
#define NN 200

int n,A[N];

int main(){
  int q,Q[NN],i,j;

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

int solve(int x,int y){
  int res;
  if(y == 0)return 1;
  if(x >= n)return 0;
  res = solve(x + 1,y) || solve(x + 1,y - A[x]);
  return res;
}

