#include<stdio.h>

#define TRUE '1'
#define FALSE '0'

int A[2000];

void makeCombination(int []);
int solve(int, int);

int main(){
  int n, q, i, B[2000];

  scanf("%d",&n);

  for(i = 0; i < n; i++) scanf("%d",&A[i]);

  scanf("%d",&q);

  for(i = 0; i < q; i++) scanf("%d",&B[i]);

  for(i = 0; i < q; i++){
    if(solve(0, B[i]) == TRUE) printf("yes\n");
    else printf("no\n");
  }  

  return 0;
}

int solve(i, m){
  int res;

  if(m == 0) return TRUE;

  if(i >= m) return FALSE;

  if(solve(i + 1, m) == TRUE) return solve(i + 1, m);

  if(solve(i + 1, m - A[i]) == TRUE) return solve(i + 1, m - A[i]);
}