#include <stdio.h>

int A[20],n;

int sum(int,int);

int main(){
  int q,m[200],i,cnt = 0;
  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[i]);
  }
  for(i=0;i<q;i++){
    if(sum(0,m[i]))
      printf("yes\n");
    else
      printf("no\n");
  }

  return 0;
}

int sum(int i,int key){
  if(key == 0)
    return 1;
  else if(i >= n)
    return 0;
  if(sum(i+1,key)||sum(i+1,key-A[i]))
    return 1; 
}

