#include<stdio.h>
#include<string.h>
#define N 20
#define ll long long
int n,q,m,a[N];
int rec(int i,int sum){
  if(sum == m)return 1;
  if(i >= n)return 0;
  return rec( i+1, sum) || rec( i+1, sum + a[i]);
}
int main(){
  int i,j;
  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( rec(0,0) )printf("yes\n");
    else printf("no\n");
  }

  return 0;
}
