#include <stdio.h>
int Esearch(int,int);

int n,A[20];

int main(){
  int i,q,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(Esearch(0,m))printf("yes\n");
    else printf("no\n");
  }
  return 0;
}

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