include<stdio.h>
#include<stdlib.h>

#define N 20
#define Q 200
#define LIM 2000

int A[N],n;

int search(int num,int key){
  int ans;

  if (key==0) return 1;
  if(num>=n) return 0;
  ans=search(num+1,key) || search(num+1,key-A[num]);
  return ans;
}

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

 scanf("%d",&n);
  if(n>N) exit(3);
  for(i=0;i<n;i++) {
    scanf("%d",&A[i]);
    if(A[i]>LIM) exit(4);
  }
  scanf("%d",&q);
  if(q>Q)exit(2);
  for(i=0;i<q;i++){
    scanf("%d",&m);
    if(m>LIM) exit(1);
  if(search(0,m)) printf("yes\n");
    else printf("no\n");
  }

    return 0;
  }