import std.stdio, std.string, std.array, std.conv;

void main() {
    int n = readln.chomp.to!int;
    int[] a = readln.chomp.split.to!(int[]);
    int q = readln.chomp.to!int;
    int[] m = readln.chomp.split.to!(int[]);
    bool[] check = new bool[2001];
    foreach (i; 0 .. 1<<n) {
        int sum = 0;
        foreach (j; 0 .. n) {
            if (i & 1<<j) sum += a[j];
        }
        check[sum] = true;
    }
    foreach (x; m) {
        writeln(check[x] ? "yes" : "no");
    }
}
