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

int serch(int,int);
int n,A[50];


int main(){
  int q,m,i;

  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);
    if(serch(0,m)==TRUE)printf("yes\n");
    else printf("no\n");
  }

  return 0;
}

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