#include <stdio.h>
#include <stdlib.h>

void scaan(int *,int);
int solve(int,int *,int,int);

int main(){
  int *A[2],i,n[2];
  
  for(i = 0;i < 2;i++){
    scanf("%d",&n[i]);
    A[i] = (int *)malloc(n[i] * sizeof(int));
    scaan(A[i],n[i]);
  }
  
  for(i = 0;i < n[1];i++){
    if(0 != solve(0,A[0],A[1][i],n[0])) printf("yes\n");
    else printf("no\n");
    
  }

  
  
  free(A[0]);
  free(A[1]);
  return 0;
}

void scaan(int *a,int b){
  int i;
  // a = (int *)malloc(b * sizeof(int));
  for(i = 0;i < b;i++){
    scanf("%d",&a[i]);
  }
}

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

