
#include<stdio.h>
#include<stdlib.h>
#define true 0
#define false 1

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

int main(){
  int i;
  int q;
  int m[200];
  int sol;

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

  scanf("%d", &q);
  if(200 < q)
    exit(2);
  
  for(i = 0; i < q; i++){
    scanf("%d", &m[i]);
    if(m[i] < 1 || 2000 < m[i])
      exit(3);
  }

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

  return 0;
}

int solve(int i, int m){
  int res;

  if(m == 0)
    return true;
  if(n <= i)
    return false;

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