#include <stdio.h>
#define MAX 200

int solve(int,int);
int A[MAX],n;

int main(void){
  int B[MAX],i,q;

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

  scanf("%d",&q);

  for(i=0;i<q;i++){
    scanf("%d",&B[i]);
    if(solve(0,B[i])) printf("yes\n");
    else printf("no\n");
  }
  
  return 0;
}

int solve(int x,int y){
  if(A[x] == y) return 1;
  if(x+1 == n) return 0;
  if(solve(x+1,y-A[x]) || solve(x+1,y)) return 1;
  return 0;

}