#include<stdio.h>

int rec(int,int);
int a[2000],n;

int main(){
  int q,m,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);
    switch(rec(0,m)){
    case 1:printf("yes\n");
      break;
    case 0:printf("no\n");
      break;
    }
  }
  return 0;
}

int  rec(int i,int m){
  int ans;
  if(m==0)return 1;
  if(i>=n)return 0;
  ans=rec(i+1,m)||rec(i+1,m-a[i]);
  return ans;
}

