#include<stdio.h>
#define A 2000

int n,a[A];

int makeCombination(int i,int x){
  int r;
  if(x==0) return 1;
  if(i>=n) return 0;
  r = makeCombination(i+1,x) || makeCombination(i+1,x-a[i]);
  return r;
      }

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

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

  return 0;
}

