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

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

const dp = {};
const memo = (i, m) => {
  if (i == n) {
    return;
  }
  memo(i + 1, m);
  memo(i + 1, m + Number(A[i]));
  dp[m] = true;
}
memo(0, 0);

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