#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:100000000")
using namespace std;
char u[200000010];
int a[5010];
int main() {
  int n, q, i, j, k, x, r;
  scanf("%d%d", &n, &k);
  for (i = 0; i < n; scanf("%d", &a[i]), i++)
    ;
  for (i = 0; i < n; i++)
    for (j = 1; j <= k; j++)
      if (!u[a[i] * j] || j < u[a[i] * j]) u[a[i] * j] = j;
  for (scanf("%d", &q); q--;) {
    scanf("%d", &x);
    r = 5010;
    for (i = 0; i < n; i++)
      for (j = 0; j <= k; j++)
        if (a[i] * j <= x && u[x - a[i] * j]) r = min(r, j + u[x - a[i] * j]);
    if (r == 5010 || r > k) r = -1;
    printf("%d\n", r);
  }
  return 0;
}
