#include <stdio.h>

int n,A[2000];

  int souatari(int i,int x){
    int next;
    if(x==0)return 1;
    if(i>=n)return 0;
    next = souatari(i+1,x) || souatari(i+1,x-A[i]);
    return next;
}

int main(){
  int q,m,i;
  
  scanf("%d",&n);
  for(i=0;i<n;i++)scanf("%d",&A[i]);

  i=0;

  scanf("%d",&q);
  while(i<q){
    scanf("%d",&m);
    if(souatari(0,m)==1)printf("yes\n");
    else printf("no\n");
    i++;
  }
  return 0;
}

