#include <bits/stdc++.h>
using namespace std;
vector<int> sum(2100100,0);
int main() {
  int n,a[21],q,m;
  cin>>n;
  for(int i=0;i<n;i++) cin>>a[i];
  for(int p=0;p<1<<n;p++){
    for(int b=0;b<n;b++) if(p&1<<b) sum[p]+=a[b];
  }
  sort(sum.begin(),sum.end());
  cin>>q;
  for(int i=0;i<q;i++){
    cin>>m;
    cout<<(find(sum.begin(),sum.end(),m)!=sum.end()?"yes":"no")<<endl;
  }
}
