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

int solve(int,int);
int a[2000],s[2000];
int n,q;

int main(){
  int i,j,flag=0;

  scanf("%d",&n);
  for(i=0;i<n;i++)scanf("%d",&a[i]);
  scanf("%d",&q);
  for(i=0;i<q;i++)scanf("%d",&s[i]);

  for(i=0;i<q;i++){
    for(j=0;j<n;j++){
      if(solve(j,s[i])){
	printf("yes\n");
	flag=1;
	break;
      }
    }
    if(flag==0){
      printf("no\n");
      flag=0;
    }
  }
  return 0;
}

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