#include<stdio.h>

#define N 2000
int j;
int A[N], Mi[N];
int n, q;


int solve(int i, int m){
  if(m == A[i]) return j = 1;
  else if(i == q) return 0;
  else{
    solve(i+1, m);
    solve(i+1, m - A[i]);
  }
  return j;
}

int main(){
  int i;

  scanf("%d", &n);

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

  scanf("%d", &q);

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

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

  return 0;
}