#include <stdio.h>
#include <stdlib.h>
#define MAX 20
#define MAX2 200

int keisan(int,int);
int a[MAX],b[MAX2],count=0,sum,n;
int main() {
int h,i,j;
int m,key,v;
scanf("%d",&n);
for(i=0;i<n;i++){
    scanf("%d",&a[i]);
}
scanf("%d",&m);
for(i=0;i<m;i++){
    scanf("%d",&b[i]);
  v=keisan(0,b[i]);
     if(v==1) printf("yes\n");
     else printf("no\n");
}
  return 0;
}
  int keisan(int x,int y){
    if(y == 0) return 1;
      if(x >= n) return 0;
      return keisan(x + 1,y) || keisan(x + 1,y - a[x]);
  }
