#include <stdio.h>
#define MAX 2000
int solve(int,int);
int A[MAX],n;
int main()
{
  int q,B[MAX],i,x;
  scanf("%d",&n);
  for(i=0;i<n;i++)
    {
      scanf("%d",&A[i]);
    }
  scanf("%d",&q);
  for(i=0;i<q;i++)
    {
      scanf("%d",&B[i]);
      x=solve(i,B[i]);  
      if(x==1) printf("yes\n");
      if(x==0) printf("no\n"); 
    }
  return 0;
}
int solve(int i,int m)
{
  if(m==0) return 1;
  if(i>=n) return 0;
  return solve(i+1,m)||solve(i+1,m-A[i]);
}