#include<stdio.h>

int judge(int ,int );

int  n,A[20];

int main(){
  int q,M,i,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",&M);

    flag=judge(0,M);

    if(flag==1)
      printf("yes\n");

    if(flag==0)
      printf("no\n");
  }

  return 0;
}

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

    

