#include<stdio.h>
#define TRUE 1
#define FALSE 0
#define N 20

int calc(int, int, int);

int a[N];

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

int calc(int i, int m, int n){
  if(m == 0) return TRUE;
  if(i >= n) return FALSE;

  if(calc(i+1, m, n) == TRUE || calc(i+1, m-a[i], n) == TRUE) return TRUE;
}

