#include <stdio.h>
#define TRUE 1
#define FALSE 0

int solve(int,int);
int A[20],n;

int main(){
  int q,i,j,m[200],y;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&A[i]);
  }

  scanf("%d",&q);
  for(j=0;j<q;j++){
    scanf("%d",&m[j]);
  }

  for(j=0;j<q;j++){
    y = solve(0,m[j]);
    if(y == 1){
      printf("yes\n");
    }
    else if(y == 0){
      printf("no\n");
    }

  }
  return 0;
}
  

int solve(int i, int m){
  int res;
  if(m == 0) return TRUE;
  if(i >= n ) return FALSE;

  res = solve(i+1, m) || solve(i+1, m-A[i]);

  return res;
}

