#include <stdio.h>

int get_uint() {
    int n = 0;
    int c = getchar_unlocked();
    if(c < 48 || 57 < c) return c;
    while(47 < c && c < 58) {
        n = 10 * n + (c & 0xf);
        c = getchar_unlocked();
    }
    return n;
}

int main(int argc, char **argv) {
    int n = get_uint();
    int a;
    char b[50000] = {1};
    for(int i = 0; i < n; ++i) {
        a = get_uint();
        for(int j = 40000; j >= 0; --j) {
            b[j] ? b[j + a] = 1 : 0;
        }
    }
    int q = get_uint();
    for(int i = 0; i < q; ++i) {
        a = get_uint();
        puts(b[a] ? "yes" : "no");
    }
}

