import std.array, std.stdio, std.conv, std.string, std.math, std.random, std.range,std.functional;
import std.algorithm.searching, std.algorithm.sorting, std.algorithm.iteration, std.algorithm.comparison;


void main()
{
    readln();
    auto aList = readln().split.to!(int[]);
    readln();
    int[] qList = readln().split.to!(int[]);

    foreach(q; qList)
    {
        bool func(Range)(int sum, Range list)
        {
            foreach(i, e; enumerate(list))
            {
                if(sum + e == q)
                {
                    return true;
                }
                if(sum + e > q)
                {
                    return false;
                }
                if(func(sum + e, list[(i+1)..$]))
                {
                    return true;
                }
            }
            return false;
        }
        writeln(func(0, aList)?"yes":"no");
    }
}

