#include <stdio.h>
#define MAX 2000
#define TRUE 1
#define FALSE 0
int n, A[MAX];
int solve(int ,int );

int main( ){
  int i, q, m[MAX];
  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[i]);

    if(solve(0,m[i])==TRUE) printf("yes\n");
    else printf("no\n");
  }
  return 0;
}


int solve(i,m){
  if(i >= n) return FALSE;
  else if(m - A[i] == 0) return TRUE;
  else{
    if( solve(i + 1, m) || solve(i + 1, m - A[i])) return TRUE;
	else return FALSE;
  }
}


  


      
      

