#include <stdio.h>

int solve(int, int);

int n, A[20];

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

  scanf("%d",&q);
  for(a = 0; a < q; a++){
    scanf("%d",&m);
    if(solve(0,m) == 1) printf("yes\n");
    else printf("no\n");
  }

  return 0;
  
}

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

