#include <stdio.h>
#include <stdlib.h>

#define N 20
#define Q 200
#define true 1
#define false 0

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

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

  scanf("%d", &n);
  if(n > N) exit(1);
  for(i=0; i<n; i++){
    scanf("%d", &A[i]);
    if(A[i] < 1 || A[i] > 2000) exit(2);
  }

  scanf("%d", &q);
  if(q > Q) exit(3);
  for(i=0; i<q; i++){
    scanf("%d", &m);
    if(m < 1 || m > 2000) exit(4);
    a = solve(0,m);
    if(a == 1) printf("yes\n");
    else if(a == 0)printf("no\n");
    else printf("%d\n",a);
  }
  return 0;
}

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

