#include <iostream>
#include <bitset>
using namespace std;
int main(){
    int n,x;
    cin>>n;bitset<2001>c(1);
    while(n--){
        cin>>x;c|=(c<<x);
    }
    cin>>n;
    while(n--){
        cin>>x;
        //cout<<x<<" ";
        cout<<(c[x]?"yes\n":"no\n");
    }
    return 0;
}

