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 dp = {};
const memo = (i, m) => {
  if (m <= 0) {
    dp[i] = dp[i] || {};
    return dp[i][m] = m === 0;
  } 
  if (i === n) {
    return false;
  }

  return memo(i + 1, m) || memo(i + 1, m - Number(A[i]));
}

for (let i = 0; i < q; i++) {
  console.log(memo(0, Number(mi[i])) ? 'yes' : 'no');
}
