#include <stdio.h>

#define n_MAX 20
#define TRUE 1
#define FALSE 0

int combination(int [],int,int,int);

int main(){
  int A[n_MAX],n;
  int m,q;
  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 (combination(A,0,n,m))
    printf("yes\n");

    else
    printf("no\n");
    
  }
  
  return 0;
}

int combination(int A[],int i,int n,int m){
int res;

  if (m == 0)
  return TRUE;

  if (i == n)
  return FALSE;

res = combination(A,i + 1,n,m) || combination(A,i + 1,n,m - A[i]);

return res;
}
