#include <stdio.h>
#define A 2000
#define Q 2000
void solve(int, int, int);
int count,a[A];

main(){
  int n,q,m[Q],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[i]);
  
  for(i=0; i<q; i++){
    count=0;
    solve(0,m[i],n);
      if(count==1) printf("yes\n");
      else printf("no\n");
  }
  return 0;
}


void solve(int i, int m,int n){
    if(m==0) count=1;
    else if(i!=n){(solve(i+1,m,n));
      solve(i+1,m-a[i],n);
    }
}