#include <iostream>
using namespace std;

int n, q;
int A[20];

bool solve(int i, int m) {
  if (m == 0) return true;
  if (i >= n) return false;
  return solve(i + 1, m - A[i]) || solve(i + 1, m);
}

int main(void){
  cin >> n;
  for (int i = 0; i < n; i++) cin >> A[i];
  cin >> q;
  for (int i = 0; i < q; i++) {
    int m;
    cin >> m;
    if (solve(0, m)) cout << "yes" << endl;
    else cout << "no" << endl;
  }
  return 0;
}