const input = require('fs').readFileSync('/dev/stdin', 'utf8');

const list = input.trim().split('\n');
const n = Number(list[0]);
const A = list[1].trim().split(' ');
const q = Number(list[2]);
const mi = list[3].trim().split(' ');

const genKey = (...args) => {
  return args.join(':');
}

const dp = new Map();
const memo = (i, m) => {
  const key = genKey(i, m);
  if (dp.has(key)) {
    return dp.get(key);
  }
  if (i === n || m === 0) {
    const result = m === 0;
    dp.set(key, result);
    return result;
  }

  const result = memo(i + 1, m) || memo(i + 1, m - A[i]);
  dp.set(key, result);
  return result;
}
for (let i = 0; i < q; i++) {
  console.log(memo(0, Number(mi[i])) ? 'yes' : 'no');
}

