#include <stdio.h>

int solve(int, int*, int);

int main() {
    int i, j, n, m;
    int a[2000];
    int cnt = 0;

    scanf("%d", &n);
    for(i = 0; i < n; i++) {
        scanf("%d", &a[i]);
    }
    scanf("%d", &m);
    for(i = 0; i < m; i++) {
        scanf("%d", &j);
        printf("%s\n", solve(j, a, n) ? "yes" : "no");
    }

    return 0;
}

int solve(int n, int* arr, int m) {
    if (m == 0) return 0;
    if (n == arr[0]) return 1;
    if (n < arr[0]) return solve(n, arr+1, m-1);
    return solve(n-arr[0], arr+1, m-1) || solve(n, arr+1, m-1);
}

