#include<stdio.h>

int n, A[50];

int solve(int i, int t){
  if ( i >= n ) return 0;
  if ( A[i] == t ) return 1;
  if ( solve(i + 1, t) ) return 1;
  if ( solve(i + 1, t - A[i]) ) return 1;
  return 0;
}

int main(){
  int i, l, m, t;
  scanf("%d", &n);
  for ( i = 0; i < n; i++ ) scanf("%d", &A[i]);
  scanf("%d", &m);
  for ( i = 0; i < m; i++ ) {
    scanf("%d", &l);
    t = solve(0, l);
    if (t == 1) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}
