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

// > (digits(m: 2000)+1)*200
#define BUF_SIZE 1030

int get_int(void) {
  int num;
#ifdef BUF_SIZE
  char line[BUF_SIZE];
  if(!fgets(line, BUF_SIZE, stdin)) return 0;
  sscanf(line, "%d", &num);
#else
#error
#endif
  return num;
}

// <arr[0]> <arr[1]> .. <arr[size-1]>
int fget_array(int *arr, int size) {
#ifdef BUF_SIZE
    char line[BUF_SIZE];
    char *tmpbuf = line;
    int i;
    if(!fgets(line, BUF_SIZE, stdin)) return -1;
    for(i = 0; i < size; i++) {
        char *tmp = strtok(tmpbuf, " ");
        arr[i] = strtol(tmp, NULL, 10);
        tmpbuf = NULL;
    }
#else
#error
#endif
    return 0;
}

#define ARR_MAX 20
#define ELEM_MAX 2000
#define NUM_MAX (ARR_MAX*ELEM_MAX)
#define QUERY_MAX 200
#define SET_MAX 20000

int main(void) {
    int n = get_int();
    int i, j;
    static int arr[ARR_MAX];
    fget_array(arr, n);
    static char dp[ARR_MAX+1][NUM_MAX+1];
    // initialization
    dp[0][0] = 1;

    int max = 0;
    for(i = 1; i <= n; i++) {
        int elem = arr[i-1];
        max += elem;
        for(j = 0; j <= max; j++) {
            dp[i][j] |= dp[i-1][j];
            if(j>=elem) dp[i][j] |= dp[i-1][j-elem];
        }
    }
    int qs = get_int();
    static int queries[QUERY_MAX];
    fget_array(queries, qs);

    for(i = 0; i < qs; i++) {
        printf("%s\n", dp[n][queries[i]] ? "yes" : "no");
    }
    return 0;
}
