#include <stdio.h>
#define N 20

int calc(int, int);
int n, A[N];

int main(){

  int q, i, num;

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

  for(i = 0; i < q; i++){
    scanf("%d", &num);
    if(calc(num, 0) == 1 ) printf("yes\n");
    else printf("no\n");
  }

  return 0;
}

int calc(int num, int a){

  if(num == 0) return 1;
  if(a == n || num < 0) return 0;

  if(calc(num - A[a], a + 1) == 1 || calc(num, a + 1) == 1) return 1;
  return 0;

}