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

bool f(int[] nList, int i, int m)
{
    if(m == 0)
        return true;
    if(m < 0)
        return false;
    if(i == nList.length)
        return false;
    return f(nList, i+1, m) || f(nList, i+1, m-nList[i]);

}
void main()
{
    readln();
    int[] nList = readln.split.to!(int[]);
    readln();
    int[] qList = readln.split.to!(int[]);
    foreach(int q; qList)
    {
        if(f(nList, 0, q))
            writeln("yes");
        else
            writeln("no");
    }
}
