#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, k, q, m, ans, tmp;
  cin >> n >> k;
  int a[n];
  set<int> s;
  for (int i = 0; i < n; ++i) cin >> a[i], s.insert(a[i]);
  cin >> q;
  while (q--) {
    ans = 1e9;
    cin >> m;
    for (int x = 0; x < n; ++x) {
      for (int y = 0; y <= k; ++y) {
        tmp = m - y * a[x];
        if (tmp == 0) ans = min(ans, y);
        for (int z = 1; z <= k - y; ++z)
          if (tmp % z == 0 && s.count(tmp / z)) ans = min(ans, y + z);
      }
    }
    if (ans > k) ans = -1;
    cout << ans << '\n';
  }
}
