#include <stdio.h>
 
int main() {
  int i,j;
  int n,q,m;
  int S[20];
  int sum;
  char isYes[40001];
  scanf("%d", &n);
  for(i = 0; i < n; ++i) scanf("%d",S+i);
  for(i = 0; i < 40001; ++i) isYes[i] = 0;
  for(i = 0; i < (1<<n)-1; ++i) {
    sum = 0;
    for(j = 0; j < n; ++j) {
      if((i>>j)&1) sum += S[j];
    }
    isYes[sum] = 1;
  }
  scanf("%d", &q);
  while(q--) {
    scanf("%d", &m);
    if(isYes[m]) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}
