const line = require('fs').readFileSync('/dev/stdin', 'utf-8').split('\n');

const solve = (m, arr) => {
    if (arr.length === 0) return false;
    const hd = arr[0];
    const tl = arr.slice(1);
    if (m === hd) return true;
    else if (m < hd) return solve(m, tl);
    else return solve(m-hd, tl) || solve(m, tl);
}

const arr1 = line[1].split(' ').map(Number);
const arr2 = line[3].split(' ').map(Number);

arr2.map(x => solve(x, arr1))
    .map(x => x ? 'yes' : 'no')
    .forEach(x => console.log(x));

