(function() {
    'use strict';

    var fs = require('fs');
    var contents = fs.readFileSync('/dev/stdin', 'utf-8');
    var lines = contents.trim().split("\n");
    var n = parseInt(lines[0]);

    var A = [];
    var a = lines[1].split(" ");
    var q = parseInt(lines[2]);
    var ms = lines[3].split(" ");
    var max = 0;
    for (var i = 0; i < a.length; i++) {
        A[i] = parseInt(a[i]);
        max += A[i];
    }

    var solve = function() {
        var memo = [];
        memo.length = 20;
        for (var j = 0; j < 20; j++) {
            memo[j] = [];
        }
        var func = function(i, m) {
            if (m === 0) return 1;
            if (i >= n || m < 0 || m > max) return 0;

            var result = memo[i][m];
            if (typeof result !== 'number') {
                result = func(i + 1, m) || func(i + 1, m - A[i]);
                memo[i][m] = 1;
            }
            return result;
        };
        return func;
    }();

    for (var i = 0; i < ms.length; i++) {
        if (solve(0, parseInt(ms[i]))) {
            console.log("yes");
        } else {
            console.log("no");
        }
    }
})();