#include <stdio.h>
int arr[50];
int n;
int solve(int key,int num)
{
	if(key==0)
	return 1;
	if(key<0||num==n) 
	return 0;
	if(solve(key-arr[num],num+1)||solve(key,num+1))
	return 1;
	return 0;
}
int main(int argc, char *argv[])
{
	int m,i,key,count=0;
	scanf("%d%d",&n,&m); 
	for(i=0;i<n;i++)
	scanf("%d",&arr[i]);
	for(i=0;i<m;i++)
	{
		scanf("%d",&key);
		if(solve(key,0))
		printf("yes\n");
		else
		printf("no\n");	
	}
	return 0;
}
