#include<stdio.h>

int n,A[20];

int main() {
  int q,i,m;

  scanf("%d",&n);
  for(i = 0 ; i < n ; i++) {
    scanf("%d",&A[i]);
  }

  scanf("%d",&q);
  for(i = 0 ; i < q ; i++) {
    scanf("%d",&m);
    if(result(0,m))
      printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

int result(int x, int y) {

  if(x >= n) return 0;
  if(A[x] == y) return 1;
  if(result(x+1,y)) return 1;
  if(result(x+1,y-A[x])) return 1;
  return 0;
}

