#include<stdio.h>
#define TRUE 1
#define FALSE -1

int solve(int, int);
int n;
int A[20];

int main(){
  int i, q, res;
  int Mj[200];

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

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

int solve(int i, int m){
  int res, res2;
  if(m == 0) return TRUE;
  if(i >= n) return FALSE;

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

