#include<stdio.h>
#define TRUE 1
#define MAX (2001 * 2001)
int sum,a[MAX],flag[MAX],datanum;
void allsearch(int num,int sum){
  if(num == datanum){
    flag[sum] = TRUE;
    return;
  }
  allsearch(num+1,sum);
  allsearch(num+1,sum + a[num]);
}

int main(){
  int temp,checknum,i,j;
  scanf("%d",&datanum);
  for(i=0;i<datanum;i++)scanf("%d",&a[i]);
  allsearch(0,0);
  scanf("%d",&checknum);
  for(i=0;i<checknum;i++){
    scanf("%d",&temp);
    if(flag[temp] == TRUE)printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

